.NET

Reply
Member
5 Posts
0 Kudos
Registered: ‎03-19-2006
Post 1 of 3

AcadExternalReference

91 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
Post 2 of 3

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
5 Posts
0 Kudos
Registered: ‎03-19-2006
Post 3 of 3

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