Angelo2449
Guest
Hello everyone,
with code :
I recognize the various types of object, how could I recognize a rectangle (closed polyline) and extract the value of the two sides?
Thank you.
with code :
Code:
(vl-load-com)
(setq entityta (entsel "\nsel select item"))
(seq object (vlax-ename->vla-object)))
(setq l: object (vlax-curve-getdistatparam object (vlax-curve-getendparam object)))
(setq list (entget))
(setq first (nth 1 list))
(setq naming (cdr first)
(princ "\n")
(princ "named xxxxxxxxxxxxxx ")
(princ nomeentita)
(princ "\n")
(cond)
((= name "lwpolyline")
(princ "\n")
(setq name "polyline")
(princ "is a polylinea")
(princ "\n")
)
((= name "line")
(princ "\n")
(setq name "linea")
(princ "is a line")
(princ "\n")
)
((= name "circle")
(princ "\n")
(setq name "circle")
(princ "is a circle")
(princ "\n")
)
);
Thank you.