Display block names in the drawing

Display block names in the drawing

v_harutyunyan
Participant Participant
338 Views
6 Replies
Message 1 of 7

Display block names in the drawing

v_harutyunyan
Participant
Participant

Please help: I want to have field text inside a block that will show the name of that block and update it when the block is renamed. Can anyone tell me if this would be possible?

0 Likes
Accepted solutions (1)
339 Views
6 Replies
Replies (6)
Message 2 of 7

cadffm
Consultant
Consultant
0 Likes
Message 3 of 7

paullimapa
Mentor
Mentor

For example:

Open "C:\Program Files\Autodesk\AutoCAD 2026\Sample\Database Connectivity\Floor Plan Sample.dwg"

Read only is ok

Zoom in to a cubicle and double click on RMNUM block which has a single Attribute NUMBER:

paullimapa_0-1747076880657.png

EATTEDIT command is executed, then right mouse click on the Value edit box and on the context menu select Insert Field

paullimapa_1-1747076981492.png

In the Field window:

Field Category: Objects

Field names: Object

Object type: click on Cross to select object

paullimapa_2-1747077065705.png

Back on the graphics drawing window select the Chair block

paullimapa_3-1747077223896.png

When the Field window reappears this time under Property select Name & click OK 2x

paullimapa_4-1747077291719.png

Back on the graphics drawing screen you'll see that the name of the Chair block is now filled in as the block attribute:

paullimapa_5-1747077411055.png

Now when you Rename the Block CHAIR7 with CHAIR8 and then do a REGEN the Block attribute will automatically update

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 4 of 7

v_harutyunyan
Participant
Participant
Accepted solution

@paullimapa thank you for your clear step by step explanations with screenshots!!!

0 Likes
Message 5 of 7

paullimapa
Mentor
Mentor

You are welcome and if you want to automate with a lisp routine to select the block with attribute and then the block  with the name then post here

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 6 of 7

v_harutyunyan
Participant
Participant

@paullimapa please explain how to assign attribute to a block as well. I messed up in this issue.

0 Likes
Message 7 of 7

paullimapa
Mentor
Mentor

Lots of video tutorials on this online like this one:

https://www.youtube.com/watch?v=Ar4tPaEZmyY&pp=0gcJCdgAo7VqN5tD


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos