Getting an object's plotstyle

Discussion in 'AutoCAD' started by Ian A. White, Jan 31, 2004.

  1. Ian A. White

    Ian A. White Guest

    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 A. White, Jan 31, 2004
    #1
  2. Ian A. White

    Joe Burke Guest

    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
     
    Joe Burke, Jan 31, 2004
    #2
  3. Ian A. White

    Ian A. White Guest

    Thanks.
     
    Ian A. White, Jan 31, 2004
    #3
  4. Ian A. White

    Joe Burke Guest

    You're welcome, Ian.

    Joe Burke

     
    Joe Burke, Feb 2, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.