[HELP] I cannot change block attribute

[HELP] I cannot change block attribute

Anonymous
Not applicable
19,088 Views
10 Replies
Message 1 of 11

[HELP] I cannot change block attribute

Anonymous
Not applicable

Hey guys,

 

I’m beginner on AutoCAD and I need some help Smiley Very Happy. I explain :

For my work, I place many times the same block (to represent a tree in 2D) on the model window. The block has a tag with attributes definition that allowed me to give name/code to my plant when I place it on the model. So I placed few hundreds of blocks with specific name everytime. But at least I noticed the height of text in the block is too small when printed. Smiley Mad

 

I look for an answer on few topics on internet but without success. Edit block make no effect until I don’t synchronize with BATTMAN or ATTSYNC, and then I lost all my block names (source code come back). The tool “Manage attributes” don’t allow me to enter a new number in Height of text option. I found how to change height of text with “Edit attribute” command but it’s only for one block and I’ve hundreds of them. “ATTEDIT” command don’t work (or I definitely don’t how to use it !)

 

So I wanted to know if you have any suggestion, if I must create a lisp (I never did it) or if I must recreate all blocks one by one ?

 

Thanks a lot ! Smiley Happy

 

PS : I work with AutoCAD 2018. And sorry if you found mistakes, I don’t speak English very well.

0 Likes
Accepted solutions (2)
19,089 Views
10 Replies
Replies (10)
Message 2 of 11

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Edit block make no effect until I don’t synchronize with

>> BATTMAN or ATTSYNC, and then I lost all my block names

I would use blockeditor for changing the height of attributes (textheight), but I would never rename attributes (that's why you might lose values stored already in your block-insertions.

 

Try to use blockeditor, change the textheight of attributes, close blockeditor with saving and then run command _ATTSYNC ... all well now?

 

- alfred -

 

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 11

robert06
Collaborator
Collaborator

Check the annotation scales of the block / attribute and print / viewport settings.

0 Likes
Message 4 of 11

Anonymous
Not applicable

Thanks Alfred for your answer.

 

Yep, that’s what I said : when I change height of text by blockeditor and regenerate model with ATTSYNC command, I lose my text values. Should I understand that’s any solution to change text height keeping text values ?

0 Likes
Message 5 of 11

cadffm
Consultant
Consultant

..because your current blockdefinition don't have non-constant attribut(tags) who match to your blockreference-attributes.

First step: Rename the tags of your attribudefinitions in Bedit (check the attributtags of a blockreference in properties-palette before).

 

Only one file? Upload the file, then you get help and the appropriate explanation in detail.

Sebastian

0 Likes
Message 6 of 11

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> regenerate model with ATTSYNC command, I lose my text values

Then you already renamed the attributes before and now the attribute name in the block-definition differs from the name in the already inserted blocks.

 

Can you upload the dwg-file in a state before you changed the height?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 7 of 11

Anonymous
Not applicable

Thanks for your answers, I try to apply it. I’ll keep you informed.

 

I give you the dwg the file. It’s a part of my work. You can see some blue circles (blocks) with code. When I use ATTSYNC command, the given code turn into ARB (original code) and obliges me to remake all blocks (few hours of work).

0 Likes
Message 8 of 11

Alfred.NESWADBA
Consultant
Consultant
Accepted solution

Hi,

 

your attribute name in the block definition is named "--" (which is bad to use special characters for names).

Your attributes in the already inserted blocks are named "C.I." (which again has special characters as name, bad too).

 

So the change you can do is:

  • unlock all layers
  • start the block-editor
  • select the attribute "--"
  • change it's tag to "C.I."
  • change it's text size
  • close the block-editor with saving
  • run command _ATTSYNC for that block

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 9 of 11

cadffm
Consultant
Consultant
Accepted solution

current attributdefinition tag: --

blockreferences attribut tags: C.I.

 

Attsync deletes all "C.I." attributes because there isn't an attributdefinition with the tag "C.I" in your current blockdefinition.

Attsync creates new attributes with tag "--" (and the default value) because this is how your current block is  defined.

 

Unlock the attribut layer(now attedit will work again 😉 ),

change the Tag in Bedit to "C.I." (c.i.), now you can use attsync.

 

181023-1.JPG

 

If you really want to change the Attributdefinition and attrib tags, use BATTMAN and set the apply-option in your battman settings:

http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-87154B11-45B7-4B7A-A75E-BAF827D06E6A

 

Sebastian

Message 10 of 11

Anonymous
Not applicable

It's work !

Thanks guys ! You're awesome ! Smiley Very Happy

0 Likes
Message 11 of 11

Anonymous
Not applicable

thank you and very useful

0 Likes