Message 1 of 6
Need Assistance with Modifying LISP Routine

Not applicable
08-05-2021
08:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I am hoping someone can make a quick modification to the below LISP routine. The current routine does the following:
- Prompts user to select a polyline
- Creates a region from the polyline while still keeping the existing polyline in place
- Adds our room tag block to the center of the region
- Associates the room sf field in the block with the area of the region
I need to make the routine a little bit smarter. I would like the following:
- Prompts the user to select if they will be using a polyline or a region
- LISP would have two possible outcomes
- If polyline option is selected:
- Prompts user to select a polyline
- Adds our room tag block to the center of the polyline
- Associates the room sf field in the block with the area of the polyline
- If the region option is selected (same as existing LISP):
- Prompts user to select a polyline
- Creates a region from the polyline while still keeping the existing polyline in place
- Adds our room tag block to the center of the region
- Associates the room sf field in the block with the area of the region
- If polyline option is selected:
- Prompts user to enter room number and populates room number field in block.
Bonus points if you can get the LISP to pull the block from our design center. You can just put a placeholder for the file path and I will fill it in. Also a bonus if you add comments for each part of the LISP routine explaining what it is doing. I'd like to get a better understanding so I can start making these modifications myself. However, it is not required.
I am attaching the LISP routine and a drawing with the room tag block. I really appreciate any assistance anyone can offer.
Thank you!