Message 1 of 26
Select text inside closed polylines and define block atributtes with that text.

Not applicable
11-23-2020
07:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an floor-plan drawing with several rooms defined by an enclosed polyline. There are several text annotations inside each polyline (room-number, room-name, etc).
How can i make a routine thats scans the drawing, builds a selectionset that finds each polyline (resides on a specific layer) and creates a block (room_stamp) with attributes corresponding to those annotations.
E.g.: for every room it would insert the block "room_stamp" inside the polyline, grab the text inside the polyline which belongs to the layer "room_name" and change the attribute "room_name" inside the block to match it.
How can i make a routine thats scans the drawing, builds a selectionset that finds each polyline (resides on a specific layer) and creates a block (room_stamp) with attributes corresponding to those annotations.
E.g.: for every room it would insert the block "room_stamp" inside the polyline, grab the text inside the polyline which belongs to the layer "room_name" and change the attribute "room_name" inside the block to match it.
Any help would be apreciated as I am just starting with LISP routines.