Message 1 of 16
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi can someone help me add this lisp? At the moment lisp can calculate 1 area at a time and only in sq inches.
This is what i want it do:
Extract layer and total area, from multiple areas.
Output to be in SQ FT. round up if possible
Close PLine if not closed (so that i wont have problems calculating). Do this matter?
Thanks
(defun c:AREAtotal()
(COMMAND "TEXTSIZE" "10" "")
(setq OldVars (mapcar 'getvar (setq VarList '(cmdecho clayer))))
(setvar 'cmdecho 0)
(command "_.layer" "_make" "AREA" "color" "MAGENTA" "" "PLOT" "NO" "" "")
(COMMAND "AREA" "O" PAUSE "" "TEXT" "J" "R" PAUSE "" "" (strcat(rtos (GETVAR "AREA") 2 0)" SQ. IN.")
(mapcar 'setvar VarList OldVars)
); progn
); if
(PRINC)
Solved! Go to Solution.