Visual Lisp and Xdata

Discussion in 'AutoCAD' started by tsigwing, Jan 13, 2004.

  1. tsigwing

    tsigwing Guest

    Is there a similar way to retrieve and place xdata on an object (specifically a viewport) similar to vlax-ldata-get and vlax-ldata-put?

    Thanks,

    Troy
     
    tsigwing, Jan 13, 2004
    #1
  2. tsigwing

    Doug Broad Guest

    Yes,
    (vla-get-xdata obj appname 'xdtype 'xdvalues)
    and
    (vla-put-xdata obj appname xddtype xdvalues)

    where xdtype and xdvalues are variant safe-arrays
    containing the xdata you want to add or get.

    (command "vplayer" ....) is much easier if you
    are attempting to control viewports. If substituting
    for vplayer, the appname is "acad"



    viewport) similar to vlax-ldata-get and vlax-ldata-put?
     
    Doug Broad, Jan 13, 2004
    #2
  3. tsigwing

    Doug Broad Guest

    Sorry for the misspellings. They are methods,
    not properties so
    (vla-getxdata ... and
    (vla-setxdata ....
     
    Doug Broad, Jan 13, 2004
    #3
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.