Jump to content

Recommended Posts

Posted (edited)

All, I need to apply following setting to all of my layouts.

 

2014_08_14_112040.jpg

 

Is it possible to achieve this by LISP?

Edited by bababarghi
Posted

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)
)

Posted (edited)

That was brilliant BIGAL :D

 

The key was not to Google "Plot paperspace last" but "Plot Viewports First"

Edited by bababarghi
Posted

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 )
)

Posted

Thanks again. I am sure that will become handy later on.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...