I too have found myself paging through a design putting all the views to a full page quite a bit. I haven't made a script for that yet but it seems like you have one that works so I'll have to take that for a spin. Thanks for contributing your script, seems like they are the real way to boost productivity with the software.
Anyways, I wanted to guide you to a post I put together for running scripts with a shortcut. If you step through this link it should (hopefully!) provide enough information to make using scripts seamless compared to having to go through the dropdown menus and running scripts.
One thing that I didn't mention is that you can also "drag" items to the menu bar for easier access. I have added the basic editor and one of my macros to the menu bar for quick access. To get a macro or any menu item to the menu bar open Tools -> Customize -> Commands tab, if you select any category on the left you can then click and drag a command on the right to the menu bar.
Hope this helps!
Making the world a nicer place one script at a time!
I just found this script, thanks its a real time saver. Any chance you can have it end up on sht 1 after all sheets have been set to extents no matter what sheet your schematic file was origanally opened with?
You can add the following line at the bottom of the script (I have done this):
It’s been a while, thanks for the info. It works great!
I'm glad to see this script getting some usage and press coverage (thanks Mentor!). On my system this script occasionally does nothing. I can run it with breakpoints and trace it line by line but while it executes the screen/zoom never changes. Does anyone with more script experience know what may be causing this? Why would PADS ignore a script?
In the past I've fixed it by running the SDD Configurator. The other day it didn't work; I tried it again the next day and it ran fine. Weird.
Yes - you are right. It's been a while.
Unfortunately Mentor does not have the good old 3-days user2user conferences any more where we used to meet.
Maybe it is caused by a script is still running - or chrashed?
Hi John and Klaus,
Thanks again for creating this script, something that should have been built into Logic as a modeless command a long time ago.
If you submit it as an enhancement you will have my vote…
Not sure why you are having issues John, we are using it on ver. 9.3 with Windows 7 Pro and XP SP3.
Here’s the script which I copied from your posting along with Klaus’ extra tidbit…
I’ll I did was add the header info/credits at the top and Klaus’ statement to return to sheet 1 at the very end.
1 of 1 people found this helpful
I wrote this one a while ago. Works for me every time.
Option Explicit Sub Main Dim startSheet As Sheet Dim sht As Sheet ' store the current sheet Set startSheet = Application.ActiveDocument.ActiveSheet For Each sht In Application.ActiveDocument.Sheets sht.Activate Application.ActiveDocument.ActiveView.SetExtentsToAll Next sht startSheet.Activate End Sub