bababarghi Posted August 14, 2014 Posted August 14, 2014 (edited) All, I need to apply following setting to all of my layouts. Is it possible to achieve this by LISP? Edited August 14, 2014 by bababarghi Quote
BIGAL Posted August 14, 2014 Posted August 14, 2014 Try this it would be better though to set your DWT to have correct plot settings you can save them top right on Plot screen. (vl-load-com) (setq doc (vla-get-activedocument (vlax-get-acad-object))) (vlax-for lay (vla-get-Layouts doc) (vla-put-PlotViewportsFirst lay -1) ) Quote
bababarghi Posted August 14, 2014 Author Posted August 14, 2014 (edited) That was brilliant BIGAL The key was not to Google "Plot paperspace last" but "Plot Viewports First" Edited August 14, 2014 by bababarghi Quote
BIGAL Posted August 15, 2014 Posted August 15, 2014 Heres a dump of a layout run this on a dwg with just 1 layout tab Press F2 scroll back up text you can see various variables that you can get at. (vl-load-com) (setq doc (vla-get-activedocument (vlax-get-acad-object))) (vlax-for lay (vla-get-Layouts doc) (vlax-dump-object lay ) ) Quote
bababarghi Posted August 15, 2014 Author Posted August 15, 2014 Thanks again. I am sure that will become handy later on. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.