Visual Lisp and Xdata

tsigwing

Usenet Archive
Joined
Jun 26, 2003
Messages
76
Reaction score
0
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
 
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"

tsigwing said:
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?
 
Sorry for the misspellings. They are methods,
not properties so
(vla-getxdata ... and
(vla-setxdata ....
 

Latest threads

Back
Top