0 Members and 1 Guest are viewing this topic.
no region
Convert LWPOLYLINES to REGIONS... Perform MEO (Modeling Element Operations - Union, Subtract, Intersect)... Convert resulting REGION back to LWPOLYLINE... Obtain points from resulting LWPOLYLINE...
union
Any issue becomes a challenge?
no region Code: [Select](defun c:yad_plcomb(/ dxf chgent os qa entold kg s1 s2 n ss1 ss2 ent) ... (command "_.region" ent "") ... (command "_.region" ent "") ... (if ss2 (command "_.subtract" ss1 "" ss2 "")) (command (if (= kg "1") "_.union" "_.intersect") ss1 "") ... (if (and ent (= (dxf ent 0) "REGION") (not (equal ent entold))) ... (if (= (dxf (ssname ss1 0) 0) "REGION") ...
(defun c:yad_plcomb(/ dxf chgent os qa entold kg s1 s2 n ss1 ss2 ent) ... (command "_.region" ent "") ... (command "_.region" ent "") ... (if ss2 (command "_.subtract" ss1 "" ss2 "")) (command (if (= kg "1") "_.union" "_.intersect") ss1 "") ... (if (and ent (= (dxf ent 0) "REGION") (not (equal ent entold))) ... (if (= (dxf (ssname ss1 0) 0) "REGION") ...
(setq reg (vlax-invoke space 'addRegion tmp))