Visual LISP, AutoLISP and General Customization

Reply
Distinguished Contributor
Posts: 157
Registered: ‎04-14-2006
Message 1 of 3 (204 Views)
Accepted Solution

Update this LISP for Display Plot Styles in 2012

204 Views, 2 Replies
03-18-2013 07:06 AM

Attached LISP will toggle the 'Display Plot Styles' for all layout tabs or the current layout tab.  In 2010 it would not affect model space. 

 

With 2012, AutoCAD added 'Display Plot Styles' as an option on the model space tab.  This routine now affects that tab. 

 

Anyone know how to make it not change this setting for the model space tab?

*Expert Elite*
Posts: 2,369
Registered: ‎11-24-2009
Message 2 of 3 (197 Views)

Re: Update this LISP for Display Plot Styles in 2012

03-18-2013 08:10 AM in reply to: mjs9199

This

(vlax-for layout layouts
				(vla-put-ShowPlotStyles layout bvshow)
			)

to

 

(vlax-for layout layouts
			  	(if (/= (vla-get-name layout) "Model")
				(vla-put-ShowPlotStyles layout bvshow))
			)

 

Not tested on 2010 CAD or higher

 

HTH

 

Distinguished Contributor
Posts: 157
Registered: ‎04-14-2006
Message 3 of 3 (188 Views)

Re: Update this LISP for Display Plot Styles in 2012

03-18-2013 09:25 AM in reply to: pbejse

That worked! Thanks!!

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community