Text - Fields - XRecord values

Text - Fields - XRecord values

Anonymous
Not applicable
1,045 Views
6 Replies
Message 1 of 7

Text - Fields - XRecord values

Anonymous
Not applicable
Hello Gurus,

Perhaps I am pushing the envelope too much, but I would like a process to take the large library of information I have stored in the NOD under my own private XDictionary and place it in a field on some text and attribute items, so that I can update the DBDictionary.XRecord.Data values and have the fields make the update automatically as well. Many times one value is diaplayed in a large set of drawings, such as object.customproperty.

Is this possible?

Fields are pre-wired to read some properties, and DIESEL expressions, can I manipulate any of these to read an XRecord value without creating a 'custom AutoCAD Entity' object? Although, I am not against doing that either if I have too.

Thank you,

jvj
0 Likes
1,046 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
You can create your own field evaluator in native ObjectARX, and
I'm pretty sure there's a sample that exposes custom data to fields.

However things get sticky when fields reference objects in other
containers (e.g., in another block table record or some other place
in a DWG file) because of the way deep cloning works, so you will
probably need to have some code to deal with cases where you
are copying objects to other drawing files.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5837115@discussion.autodesk.com...
Hello Gurus,

Perhaps I am pushing the envelope too much, but I would like a process to take the large library of information I have stored in the NOD under my own private XDictionary and place it in a field on some text and attribute items, so that I can update the DBDictionary.XRecord.Data values and have the fields make the update automatically as well. Many times one value is diaplayed in a large set of drawings, such as object.customproperty.

Is this possible?

Fields are pre-wired to read some properties, and DIESEL expressions, can I manipulate any of these to read an XRecord value without creating a 'custom AutoCAD Entity' object? Although, I am not against doing that either if I have too.

Thank you,

jvj
0 Likes
Message 3 of 7

Anonymous
Not applicable
Lucky for me I am creating all my data in a psuedo table structure completely contained within the NOD.

Thanks for the tip.
0 Likes
Message 4 of 7

Anonymous
Not applicable
one thing to remeber on the xrecords. They do NOT update. Recreate them. the name key will overwrite along with it and you'll be fine.
0 Likes
Message 5 of 7

Anonymous
Not applicable
So back to the point, Can I get a text Field object to read the Xrecord value?
0 Likes
Message 6 of 7

Anonymous
Not applicable
It was already answered.

You can't get any of the standard OOTB field evaluators to look in an XRecord. You have to write your own field evaluator which can be done in native ObjectARX, and I think there is a sample that shows how.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5841856@discussion.autodesk.com...
So back to the point, Can I get a text Field object to read the Xrecord value?
0 Likes
Message 7 of 7

Anonymous
Not applicable
and so I start studying object ARX in detail...
0 Likes