Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Script Switching to next layout

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
1299 Views, 7 Replies

Script Switching to next layout

Hi dear,

I have more then 100 drawing to update the attribute, i write script to open the drawing to update the attribute
but doesn't update all layout(each drawing have three layout).

My question is:

* How to switching to next layout in the script.

If i press button [Control+Pagedown] bring to next layout but i dont know how to write in the script.


thanks
Siva
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

(setvar "ctab" "layoutname1") will make the tab with "layoutname1"
current e.g. (setvar "ctab" "Elevations")

George Drayton CD-CAD Ltd Christchurch New Zealand
Message 3 of 8
Anonymous
in reply to: Anonymous

OOps no lisp in LT - use the CTAB command and enter a layout name

e.g.
Command: ctab

Enter new value for CTAB <"Model">: layout1
keyboard or a script file>

Regenerating layout.
Regenerating layout.
Regenerating model.


George Drayton CD-CAD Ltd Christchurch New Zealand
Message 4 of 8
Anonymous
in reply to: Anonymous

Possible to do without layout name bec. i have different name each layout and each drawings.

Thanks George

Regards,
Siva
Message 5 of 8
Anonymous
in reply to: Anonymous

Nope, script files are exact/specific, they emulate what you would type at
the command line as a command/sub-command sequence (not all keyboard
shortcuts work).

HELP explains what keyboard shortcuts you can use in macros (some work in
Script files but not all) at

AutoCAD LT Customization Guide > Customize the User Interface > Create
Macros > Use Special Control Characters in Macros....

--
Dean Saadallah
http://LTisACAD.blogspot.com
--
Message 6 of 8
Anonymous
in reply to: Anonymous

thanks for your help.

I wrote lisp to update the attribute each layouts.

thanks.
siva
Message 7 of 8
Anonymous
in reply to: Anonymous

thanks for your help.

Quiet useful CTAB command.

I wrote lisp to update the attribute each layouts.
We have Autocad 2004 but need to share each other.

thanks.
siva
Message 8 of 8
Anonymous
in reply to: Anonymous

If you have access to full AutoCAD you can cycle through layouts without
knowing their names. The lisp fubction (layoutlist) return a list with
the names of the layouts which you can"select" one at a time with say
the (nth)function to make that layout active and then do the relevent
editing

George Drayton CD-CAD Ltd Christchurch New Zealand

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost