To place rooms through CAD, generally speaking, manually placing rooms requires entering the names one by one, then finding the corresponding wall-enclosed position, and then placing them. If there are a large number of rooms, it will be time-consuming. If you place them using the existing room names in CAD, it will be much faster. First, the room name can be obtained from the textblock in CAD. Secondly, in CAD, the position of the room name textblock can also be obtained in Dynamo. With the position and text name value, batch placement of all rooms at the current floor plan is much faster than placing them one by one manually.
This is a more practical script. If the name of the CAD room is not centered for various reasons, another script in Dynamo can be used to center the name of the room.