Visual LISP, AutoLISP and General Customization

Reply
Distinguished Contributor
bzeone
Posts: 222
Registered: ‎08-29-2003
Message 1 of 2 (500 Views)

Lisp to change Plot Style Table

500 Views, 1 Replies
10-03-2012 02:15 PM

Is it possible to create a lisp that would change the plot style table?  I don't know of any variable to type to change that.  We convert drawings from Solidworks to AutoCad and use the basic monochrome plot style.  I'd like to easily change that since the act of doing that is repeated many times.

 

 

Thanks,

Brandon

*Expert Elite*
dbroad
Posts: 1,492
Registered: ‎08-16-2007
Message 2 of 2 (484 Views)

Re: Lisp to change Plot Style Table

10-03-2012 03:00 PM in reply to: bzeone

This is what is needed to determine the current plotstyle using vlisp.  Change the get to a put and add the name just before the last parenthesis in quotes.

(vla-get-stylesheet(vla-item(vla-get-layouts(vla-get-activedocument(vlax-get-acad-object)))(getvar "ctab")))

 

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
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

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

Ask the Community