.NET

Reply
Member
Hikeeba!
Posts: 5
Registered: ‎03-19-2006
Message 1 of 3 (90 Views)

AcadExternalReference

90 Views, 2 Replies
03-19-2006 03:00 PM
I'm trying to update some XData in an XRef like so:

short[] keys = new short[]{1001, 1000};
object[] values = new object[]{"BWACAD", "MyString"};

xref.Database.Dictionaries.SetXData(keys, values);

I then save the document containing the XRef. It doesn't seem to hold the values when I reopen the XRef.

Am I setting the XData improperly? What I want is to have the external file hold the XData and be able to reread it again.

So I will have multiple XRefs in a document with their own XData and I want to be able to update them separately and save the XRef document separately.

Any help?
*Tony Tanzillo
Message 2 of 3 (90 Views)

Re: AcadExternalReference

03-20-2006 03:12 AM in reply to: Hikeeba!
Since when does saving a drawing also
save or modify external references ?

The only way to do that, is to open the
xref'd drawing as an AxDbDocument, make
the changes you need, and then save it.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5115197@discussion.autodesk.com...
I'm trying to update some XData in an XRef like so:

short[] keys = new short[]{1001, 1000};
object[] values = new object[]{"BWACAD", "MyString"};

xref.Database.Dictionaries.SetXData(keys, values);

I then save the document containing the XRef. It doesn't seem to hold the values when I reopen the XRef.

Am I setting the XData improperly? What I want is to have the external file hold the XData and be able to reread it again.

So I will have multiple XRefs in a document with their own XData and I want to be able to update them separately and save the XRef document separately.

Any help?
Member
Hikeeba!
Posts: 5
Registered: ‎03-19-2006
Message 3 of 3 (90 Views)

Re: AcadExternalReference

03-20-2006 06:41 AM in reply to: Hikeeba!
Thanks. For some reason I though they would save as well. I know what I need to do now.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.