TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Blondie on January 03, 2005, 11:19:08 AM
-
Hi,
I want to use pedit command from Vlisp
(command "pedit" "m" sset_to_join "" "j" "" "")
and I want to know if the lines are joined or not
Usually in ACAD command prompt you have the answer how many lines are joined, but is there any way to check from Vlisp if the lines are joined?
Thanks in advance
-
You can count the entities that no longer exist in the selection set.
(setq cnt 0)
(while (setq ent (ssname ss 0))
(ssdel ent ss)
(if (not (entget ent))
(setq cnt (1+ cnt))
)
)
-
That's not a bad idea, i'll try that
Thanks
Blondie
-
You're welcome.
Or you could turn CMDECHO back on for that command and then back off.