Message 1 of 3
LISP to swap to first layout as active layout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've gotten a request from a client that all dwg:s are to be delivered with the first layout tab as the active. Given that each deliver can contain hundreds of dwg:s I would like to automate this if possible.
Seeing as tilemode set to 0 gives me the last used layout and ctab requires me to know the name for each dwg I assume that a lisp function is needed.
I'm assuming the function would work something like this:
- Find out what is the name of the first tab
- The first tab in this case would be the left most one in open dwg
- Set the named layout as active
- I assume you can just call CTAB with the name
How would a LISP code look to solve this?
Thanks in advance for any help!