Message 1 of 5

Not applicable
10-17-2021
04:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning, I have a LISP that identifies the area of an existing polygon and places it with a code in a Leader. My question is if I can do the same but with Mleader instead of Leader. The code and area need to be displayed in two rows (this is the part I can't get done). Thanks for your help.
(defun C:ETA ()
(SETQ ETQ (GETSTRING "PREFIJO: "))
(SETQ N (GETINT "VALOR INICIAL: "))
(WHILE
(setq punto (getpoint "\nPunto interno:"))
(command "_bpoly" punto "")
(command "_AREA" "_e" "_last")
(command "_REDRAWALL")
(setq pt1 (getpoint punto "\nDesigna posición del texto: "))
(setq a4 (strcat "Ar=" (rtos (getvar "AREA") 2 2) " m2"))
(setq a5 (strcat ETQ (ITOA N)))
(command "_LEADER" punto pt1 "" a5 a4 "")
(SETQ N (+ N 1))
)
)
Solved! Go to Solution.