Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Modify a polyarea in square yards

1 REPLY 1
Reply
Message 1 of 2
rtulster
268 Views, 1 Reply

Modify a polyarea in square yards

The LISP script I have takes a polyarea in sqare feet but I would like to divide the square feet by 9 to get the square yards. Can someone tell me what I need to change in order to get this done.

 

the current lisp is worded as such

  (strcat (rtos a 2 2) " square inches,\nor "
                          (rtos (/ a 144.0) 2 3) " square feet.")

1 REPLY 1
Message 2 of 2
Shneuph
in reply to: rtulster

if area a / 144 gives square ft:

(rtos (/ a 144.0) 2 3) " square feet.")

then a / 1296 (144 * 9) should give square yards, yes? 

(strcat (rtos a 2 2) " square inches,\nor "
          (rtos (/ a 144.0) 2 3) " square feet,\nor "

          (rtos (/ a 1296.0) 2 3) " square yards."

          );end strcat

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost