Jump to content

Recommended Posts

Posted

Using the Total Area lisp of Lee Mac here.

 

It works great, but I was wondering if its possible to add units after the "rtos" display such as sq. meters or Ha?

 

As well, all our drafting is done in meters, so all our areas come out as m2. Is possible to add a factor to the area to read Ha? (Multiply by .0001)?

 

Thanks!

Posted (edited)

Boom!! That was easy.

 

Here is what I have and it works. Found out you can add a few superscripts to notepad.

 

(prompt (strcat "\nTotal Area = " (rtos a 2) " m²"))

 

Displays: Total Area = 0.20 m²

Edited by Bill_Myron
Posted (edited)

Figured out the other part too.

 

Added another setq and adjusted the strcat accordingly.

 

(setq b (* a 0.0001))

(prompt (strcat "\nTotal Area = " (rtos a 2) " m² " "/ " (rtos b 2) " Ha"))

 

Displays: Total Area = 151081.15 m² / 15.11 Ha

 

Thanks again to Lee Mac for the original program.

Edited by Bill_Myron
Posted
Thanks again to Lee Mac for the original program.

 

You're most welcome - I'm glad you find it useful!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...