How do I edit this lisp to get a label with room dimensions and area?

How do I edit this lisp to get a label with room dimensions and area?

sagarbhumi01
Observer Observer
217 Views
2 Replies
Message 1 of 3

How do I edit this lisp to get a label with room dimensions and area?

sagarbhumi01
Observer
Observer

Want to change it to prompt to select a polyline, select the room name, and then get a label with it's length x width in ft and inches along with it's area in sq.ft, the drawing being in millimeters?

0 Likes
218 Views
2 Replies
Replies (2)
Message 2 of 3

paullimapa
Mentor
Mentor

Try attached modified RoomLabel.lsp

In addition to selecting a Pline rectangle, you'll also need to select the Mtext object to label.

FYI: The area is a field so will update automatically when rectangle changes but the width & length are not.

I've included a sample dwg for you to try this on.


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

paullimapa
Mentor
Mentor

This RoomLabel.lsp version does NOT require you to select MTEXT object.

The MTEXT label will be placed in the center of the selected Rectangle.

But you'll have to properly set the TEXTSIZE accordingly to see the MTEXT content.

 

 


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