Jan 13, 2004 #1 T 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
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
Jan 13, 2004 #2 D Doug Broad Usenet Archive Joined Jul 7, 2003 Messages 745 Reaction score 0 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 Click to expand... viewport) similar to vlax-ldata-get and vlax-ldata-put?
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 Click to expand... viewport) similar to vlax-ldata-get and vlax-ldata-put?
Jan 13, 2004 #3 D Doug Broad Usenet Archive Joined Jul 7, 2003 Messages 745 Reaction score 0 Sorry for the misspellings. They are methods, not properties so (vla-getxdata ... and (vla-setxdata ....
Sorry for the misspellings. They are methods, not properties so (vla-getxdata ... and (vla-setxdata ....