Welcome to the CADTutor forums, probably the most lively and friendly AutoCAD forums on the web. You will need to register in order to post a question and to see all the content on this board. See How to register for details. Use the Lost password recovery form if you ever forget either your password or username. Be sure to check out the FAQ for more information.

Replace text with block and transfer value into attribute

I defined a block with attribute inside named ROOM_NO,
I want to replace each mtext object with this block while getting the value into the attribute.

The issue comes from migrating the drawing from Revit to AutoCad. Revit exports the room tags as mtext objects and I need to covert them to proper blocks with attibute. I have over 3000 rooms which is why a lisp routing comes in handy.

mhmtlgrr's Computer Details

mhmtlgrr's Discipline Details

Occupation

Architect

Discipline

Architectural

Using

AutoCAD 2015

Join Date

Jul 2012

Posts

11

Let me explain as per your questions:

Did you create the Attributed Block?
- Yes.
Then what's the name of this Block?
-The block is named as ROOMTAG
Do you have a list of these Room names?
-Room numbers are distributed over the DWG
Is there any of these Mtexts formatted?
-All room numbers are placed in Mtext objects

I shared a file with this post. Please check out the file as working drawing.