.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AcadExternalReference

2 REPLIES 2
Reply
Message 1 of 3
Hikeeba!
178 Views, 2 Replies

AcadExternalReference

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?
2 REPLIES 2
Message 2 of 3
Anonymous
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?
Message 3 of 3
Hikeeba!
in reply to: Hikeeba!

Thanks. For some reason I though they would save as well. I know what I need to do now.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost