Getting an object's plotstyle

Ian A. White

Usenet Archive
Joined
Feb 13, 2000
Messages
157
Reaction score
0
Hi,

I have been exploring plotstyles for a client. The online documentation says that the plotstyle is a property of an object, but I cannot see it when I do an entget on the object.

How is this property accessed?

Thanks.
 
Ian,

You can get the plot style name like this:

(setq vobj (vlax-ename->vla-object (car (entsel "\nSelect: ")))) (vlax-get vobj 'PlotStyleName) ;returns the name

Also try: (vlax-dump-object vobj) which will list all the object's properties in the text window. Any property available can be retrieved by supplying the property name as a quoted symbol, as above.

Joe Burke
 
Ian,

You can get the plot style name like this:

(setq vobj (vlax-ename->vla-object (car (entsel "\nSelect: ")))) (vlax-get vobj 'PlotStyleName) ;returns the name

Thanks.
 

Latest threads

Back
Top