Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you activate a layout in Autolisp or VBA 2

Status
Not open for further replies.

mornings

Technical User
Oct 27, 2005
2
US
How do I activate a layout (sheet tab) within Autocad 2005
in either AutoLisp or VBA. I am trying to select or
activate a layout run an autolisp routine then switch to
the next layout (sheet tab) and run the autolisp program
again. I am trying to automate this process but do not
know what syntax is needed in either AutoLisp or VBA.
 
Hi mornings,

Don't know the AutoLISP version but the VBA version is:

Code:
ThisDrawing.ActiveLayout = ThisDrawing.Layouts("Layout1")

HTH
Todd
 
In lisp, you could use:

(command "layout" "s" "Layout1")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top