Andy,
Just a follow up to the useful routine that Juergen posted:
Use the rtos function to control the output of the text.
Example:
(command "_text" pt "" "" (getvar "area"))
If your units are set to decimal, the output will give you more decimal places than you probably need.
To control this, change the line to:
(command "_text" pt "" "" (rtos (getvar "area") 2 4))
This example will give you 4 decimal places. The 2 represents the mode of units (decimal in this case); the 4 represents the precision. You can omit these two numbers if you want to use your current settings in UNITS or you can output them in any units you'd like. For more info, see RTOS function in Autolisp Help.
Pete
Andy Roberts wrote:
Does anyone have a lisp routine for clicking on a polyline and placing the area of the polyline as text
Can you please post it?
Regards
Andy
Andy Roberts
Arena Property Services
London
United Kingdom
0207 8377721