TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Blondie on January 03, 2005, 11:19:08 AM

Title: pedit - how many lines are joined
Post 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
Title: pedit - how many lines are joined
Post by: CAB on January 03, 2005, 12:01:43 PM
You can count the entities that no longer exist in the selection set.
Code: [Select]
(setq cnt 0)
 (while (setq ent (ssname ss 0))
    (ssdel ent ss)
    (if (not (entget ent))
      (setq cnt (1+ cnt))
    )
  )
Title: Thanks
Post by: blondie on January 03, 2005, 02:57:20 PM
That's not a bad idea, i'll try that

Thanks
Blondie
Title: pedit - how many lines are joined
Post by: CAB on January 03, 2005, 03:01:50 PM
You're welcome.
Or you could turn CMDECHO back on for that command and then back off.