Angelo2449
Guest
Hello everyone,
I would like to check the selection of a polylinea and I wrote this:
the code not by mistake, recognizes the wrong selection but does not make me pass"
This is the result:
select the external polyline :
e111 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Thank you.
I would like to check the selection of a polylinea and I wrote this:
Code:
(while (= ed1 nil)
(setq ed1 (entsel "\nseleziona la polilinea esterna : "))
);;while
(setq ed11 (entget (entlast)))
(setq ed111 (cdr (assoc 0 ed11)))
(princ "\n")
(princ "ed111 >>>>>>>>>>>>>>>>>>>>>>>>>> ")
(princ ed111)
(princ "\n")
(if (or (/= ed111 "lwpolyline") (/= ed111 "polyline"))
(progn
(alert "non hai selezionato una polilinea!")
(vl-exit-with-error "uscita dal programma")
);;progn
);;if
This is the result:
select the external polyline :
e111 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Thank you.