Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lisp that will apply script to all Layout Tab

1 REPLY 1
Reply
Message 1 of 2
nichkherbsman
801 Views, 1 Reply

Lisp that will apply script to all Layout Tab

I have use script to lunch mulitple command but sometimes I have dwg file that has more layout.
Is there a lisp that will call this script and apply to all layout tab.

Thank you.
Attached is sample script

NiCHKCiD
BIM Modeler
Technical Officer
Technical Designer
Sr. Draftsman
1 REPLY 1
Message 2 of 2
Sea-Haven
in reply to: nichkherbsman

Try this

 

(setq doc (vla-get-activedocument (vlax-get-acad-object)))
(vlax-for lay (vla-get-Layouts doc)
(setq tabname (vla-get-name lay))
 (if (/= tabname "Model")
    (progn
      (setvar "ctab" tabname)
(command "script" yourscript)
)))

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report