PDA

View Full Version : Can fields retrieve attribute values form reinserted block references??



muck
3rd Mar 2011, 07:41 pm
AutoCAD fields can be mapped retrieve an attribute value form a block but if the block reference
is removed form the drawing the field will only give ### values. If a block reference reinserted in the drawing the field values remain ###. Is there a way to get the field to retrieve attribute value from reinserted block reference without remapping the field??

Thank you,

SLW210
3rd Mar 2011, 08:01 pm
FIELDEVAL is the AutoCAD System Variable set at 16 Fields update on a Regen. You trying .NET or VBA?

Jeff H
5th Mar 2011, 01:07 am
Looking at the attached picture
It appears in the Extension dictionary of the Field the ObjectId of the AttributeReference is stored as part of the Field Code. So when you delete the blockreference there is no longer a vaild ObjectId, but when you insert a new one editing the Field Code to match the ObjectId of the new Attribute Reference and a Regen would probably work.
This seems like it might be useful.
I will code something up and post later