AutoCAD 2010/2011/2012

Reply
New Member
Ninjaneer
Posts: 2
Registered: ‎11-11-2011
Message 1 of 2 (664 Views)

Attribute text twice in a block

664 Views, 1 Replies
04-27-2012 02:53 AM

Hi all,

 

I need to create blocks in which the same text appears twice.  I've created an invisible attribute to hold the text and created two mtext object containing fields that point to the attribute value.

 

The text fields show the default value of my attribute but will not change when the attribute is set on an placed instance.  After setting the attribute on an instance I've tried UPDATEFIELD and REGEN but still I see the default value.

 

Any hints?

Product Support
Silvia.Menon
Posts: 182
Registered: ‎06-11-2007
Message 2 of 2 (612 Views)

Re: Attribute text twice in a block

04-30-2012 09:00 AM in reply to: Ninjaneer

Hi,

 

unfortunately the object ID of the attribute will be different in each inserted instance, and also different form the attribute's object ID as it is in the Block Editor. This is the reason why the field will not update in the inserted blocks.

 

One way to work around this could be like this:

  1. create your block with the attribute
  2. insert the block
  3. use the FIELD command and insert a field in the drawing that references the attribute in the inserted block
  4. double-click on the field and copy the field expression into the clipboard
  5. Cancel out of the Field dialog box
  6. Open your block in the Block Editor
  7. Press CTRL+V to insert your first field (this will insert the copied field expression with the object ID of the already inserted attribute)
  8. Press CTRL+V once more for the second field
  9. Exit the Block Editor and save the changes to the Block

 

If you now modify the value of the attribute of the already inserted Block (e.g. through the Properties Palette), both the fields should update correctly.

 

The catch is that this will unfortunately only work on a "per insertion" basis due to the already mentioned fact that the object ID will be different for each insertion.

 

But maybe it still helps a little.

 

Best regards,

Silvia



Silvia Menon
Support Specialist
Product Support
Autodesk, Inc.


http://www.autodesk.com/autocad-support

 

________________________________________________________
If my post answers your question, please click the "Accept as Solution" button. This will help everyone find answers more quickly.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community




Connect with AutoCAD

Twitter

Facebook

Blogs

Pinterest

Youtube