How is XData Set/Get using ObjectDBX?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
How is XData Set/Get using ObjectDBX?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
clarence_rollins
Guest





Posted: Sat Dec 04, 2004 7:05 pm    Post subject: How is XData Set/Get using ObjectDBX? Reply with quote

The following line returns an empty array:

MyObject.GetXData "MYXDATA", avarXDataType, avarXDataValue

This worked with AutoCAD 2004 and ObjectDBX. It does not work with AutoCAD 2005 and ObjectDBX.

Back to top
Jorge Jimenez
Guest





Posted: Sat Dec 04, 2004 11:54 pm    Post subject: Re: How is XData Set/Get using ObjectDBX? Reply with quote

Should work the same.
Maybe your MyObject is empty to begin with
or MYXDATA has a spelling error.
Check your references and your dims

--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica


"clarence_rollins" <nospam@address.withheld> wrote in message
news:934187.1102169173008.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
The following line returns an empty array:

MyObject.GetXData "MYXDATA", avarXDataType, avarXDataValue

This worked with AutoCAD 2004 and ObjectDBX. It does not work with
AutoCAD 2005 and ObjectDBX.
Back to top
TomD
Guest





Posted: Mon Dec 06, 2004 5:13 am    Post subject: Re: How is XData Set/Get using ObjectDBX? Reply with quote

"Jorge Jimenez" <unknown@nospam.com> wrote in message
news:41b207e6_3@newsprd01...
Quote:
Should work the same.
Maybe your MyObject is empty to begin with
or MYXDATA has a spelling error.
Check your references and your dims

If you want to check the actual object's data (simply and reliably) from the
command line, try the following:

(entget (car (entsel)) '("*"))

will show all of the data, albeit in DXF type format

Back to top
clarence_rollins
Guest





Posted: Thu Dec 09, 2004 1:25 am    Post subject: Re: How is XData Set/Get using ObjectDBX? Reply with quote

It turned out to be a misplaced 'Exit For' statement.

The loop exited on the first object that did not contain the particular XData Application.
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB