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

Lisp to change Plot Style Table

1 REPLY 1
Reply
Message 1 of 2
bzeone
1471 Views, 1 Reply

Lisp to change Plot Style Table

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

1 REPLY 1
Message 2 of 2
dbroad
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")))

 

Architect, Registered NC, VA, SC, & GA.

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

Post to forums  

Autodesk Design & Make Report

”Boost