Lisp to automatically label the rooms in ft and inches...

Lisp to automatically label the rooms in ft and inches...

Anonymous
Not applicable
4,965 Views
11 Replies
Message 1 of 12

Lisp to automatically label the rooms in ft and inches...

Anonymous
Not applicable

I've got the lisp but the problem with this lisp is:

1.It asks for two corners but for a room with columns(attached drawing) it is not possible to do so ....So it would be easy if it just asks two vertical and two horizontal points for room dimension...

2.It shows in metric system ...Instead it would be good if it was in ft and inches i.e 13'6"x5'

3.Mtext and the dimension should be in current layer

0 Likes
Accepted solutions (1)
4,966 Views
11 Replies
Replies (11)
Message 2 of 12

Michiel.Valcke
Advisor
Advisor

Hello,

You can have the effect you want with basic autocad functionality.

If you have a closed polyline, a hatch or a region you can make a _FIELD, once you do you select the object and what property of that object you wish to display (in this case the area) with additional formatting you can set a conversion rate or add a suffix or prefix. Once you have done that you will have created an MText object showing the value that you need.

When you change your original object the value of your text will update automatically after a refresh. 

You can also create a field if you're editing a text and right-click choose -> Insert Field (or Ctrl+F)

You can easily create closed polylines with the command _BO (you can choose whether the command generates a region or a polyline)

You can create fields to represent a lot of different values from within your drawing. Ranging from object properties, file properties to system variables.

I have added some screenshots to give you a better idea.

1.JPG 

2.JPG

3.JPG

4.JPG

5.JPG

Message 3 of 12

Anonymous
Not applicable

First of all thank you SIR for letting me know about such commands and its functions ..the problem is it only works in rectangular room not in my attached case...and i just want to write dimension of room in my case not whole area..But thanks anyway for giving me new idea. 🙂

0 Likes
Message 4 of 12

Michiel.Valcke
Advisor
Advisor
Accepted solution

Hi,

You can use this with a lot of different objects, including non-rectangular polylines. The only requirement is that you have an object in your drawing that has this value in its properties. 

You can make an extra layer and place your closed polylines there. Because you choose the polyline you are not forced to follow the contours of your room.

If you always want to follow the contours of your room you can just use the _BO command to simplify things.

As you can see in the picture here, my original example also had inward corners.

1.JPG

Message 5 of 12

Anonymous
Not applicable

Thank you sir!!

0 Likes
Message 6 of 12

Anonymous
Not applicable
Its not working in feet and inches Please help me
0 Likes
Message 7 of 12

Michiel.Valcke
Advisor
Advisor

How is it not exactly working? Do you get no value? do you get the wrong value? do you get the wrong notation?

I presume you are still using fields as mentioned in the solution above.

0 Likes
Message 8 of 12

Anonymous
Not applicable

Thank for reply

It lisp working too good but i won't dimensions in ft and inches like

   living

10'0"x10'0" not 3.05 x 3.05

0 Likes
Message 9 of 12

Michiel.Valcke
Advisor
Advisor

Hello,

Then I propose you make a new post in the .lisp and customization boards.

This solution did not use a lisp, but only standard AutoCad functionality.

You can find the boards here. I'm sure someone there will be able to help you if you share your .lsp

0 Likes
Message 10 of 12

Anonymous
Not applicable

hello sir,

 

i need to show dimension in feets  plz tell me settings

 

 

eg: 10'6"x10'6" like this

 

0 Likes
Message 11 of 12

Michiel.Valcke
Advisor
Advisor

I have never worked with feet / inches in my life so I'm not used to the conversion rate. But if your drawing is set up to show the area property of a closed polyline in square feet / inches then the field will give you the correct value as square feet / inches. 
you can also add additional formating in your field (this includes a conversion rate and a pre- or suffix) 
If you choose the mode architectural (when showing the area of an object in the field) then a conversion rate is pre-selected and the suffix SQ.FT. is added).

0 Likes
Message 12 of 12

vinodkl
Mentor
Mentor

Try this(see attachment)

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------