PDA

View Full Version : Converting feet to inches


lillian.twining
2005-05-11, 07:11 PM
Hello,
I am just beginning to learn to use AutoLisp, and I'm having trouble converting feet to inches. I want the user to be able to enter 20' at the beginning of the lisp routine, but I don't know how to make the 20' a usable real number in the rest of the routine.

Thanks,
Lily

Opie
2005-05-11, 07:17 PM
I believe you can set "LUNITS" to 4. This would set the linear units to the architectural units, which would allow for input of architectural feet and inches or just inches.
(setvar "LUNITS" 4)

scwegner
2005-05-11, 07:19 PM
It depends on what you're using to prompt for user input. Show us what you're trying to do.

RobertB
2005-05-11, 07:59 PM
(setq inp (getdist))

Robert.Hall
2005-05-12, 01:35 PM
hmmmm, too bad that you can't have someone type in metric units and cad
actually draws everything in english units. That would be such a lifesaver for those
of us who are given metric by our customers but need english to send to suppliers.

Acad wishlist?????????

pnorman
2005-05-12, 07:33 PM
Too bad we don't all work in metric! :)