Author Topic: How to PURGE All, Except the Named Groups?  (Read 4315 times)

0 Members and 1 Guest are viewing this topic.

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1453
  • Marco
Re: How to PURGE all except the named groups?
« Reply #15 on: October 06, 2016, 11:26:17 AM »
<>
Unless I'm mistaken, Marc'Antonio Alessi's code will delete groups which is the opposite of what you want.
Dan
Sorry for late... I do not think so, try with attached file:

1) Delete entities of group Foo1 and Foo2

2) (ALE_Utl_PurgeGroupsNoName (vla-get-ActiveDocument (vlax-get-acad-object)))

3) the function ALE_Utl_PurgeGroupsNoName:
  - do not delete groups anonimous or not with more of 1 entity
  - delete only anonimous groups (empty or 1 entity)


ranjanarju

  • Guest
Re: How to PURGE All, Except the Named Groups?
« Reply #16 on: October 07, 2016, 10:06:32 AM »
Thank you Dan, I will remember before posting any graphical contents. Thanks.


Alessi, it works, the way you described. Thanks. But the thing is that we need to use the default command 'PURGE'; and we want to keep those groups.


Another question, is there a way that the named groups (started with the word 'SIZE' and these are purge-able now) can be entered into a table within the autocad drawing as non-graphical objects. Probably, I am saying the same thing that Gile's method described here (https://www.theswamp.org/index.php?topic=44094.msg493432#msg493432).

Can anyone help me with the idea of inserting groups in table within AutoCad?

Or, Can anyone help me with showing how Gile's method can be used?

BR,
Ranjan 
« Last Edit: October 07, 2016, 10:21:09 AM by ranjanarju »

danallen

  • Guest
Re: How to PURGE All, Except the Named Groups?
« Reply #17 on: October 07, 2016, 01:00:05 PM »
Ranjan,

Does the c:mypurge route work for you? You can use as replacement for regular purge using undefine command in your load up lisps.

If you go the route of Gile's embedded non-graphical objects, be sure you have a good method for removing/cleaning them. And consider who else you might be sharing your drawings with who might be annoyed at stuff that can't easily be purged, or consider the CAD operator 10 years from now.

Dan