Author Topic: pedit - how many lines are joined  (Read 2399 times)

0 Members and 1 Guest are viewing this topic.

Blondie

  • Guest
pedit - how many lines are joined
« 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

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
pedit - how many lines are joined
« Reply #1 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))
    )
  )
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

blondie

  • Guest
Thanks
« Reply #2 on: January 03, 2005, 02:57:20 PM »
That's not a bad idea, i'll try that

Thanks
Blondie

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
pedit - how many lines are joined
« Reply #3 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.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.