Explode Group by Picking it

Discussion in 'AutoCAD' started by sashk, Jun 22, 2004.

  1. sashk

    sashk Guest

    Anyone have a routine in which I can explode a group, copied or not, by picking it. I have an explode ALL groups routine, but I want to pick a group. Thanks
     
    sashk, Jun 22, 2004
    #1
  2. sashk

    OLD-CADaver Guest

    ummm... is there some advantage to this over selecting the name to explode out the GROUP dialog box???
     
    OLD-CADaver, Jun 22, 2004
    #2
  3. sashk

    Don Butler Guest

    Try this...

    http://tinyurl.com/3dr4o

    Don

    picking it. I have an explode ALL groups routine, but I want to pick a
    group. Thanks
     
    Don Butler, Jun 22, 2004
    #3
  4. sashk

    jbryant4 Guest

    Here is a simple one:

    (defun C:GX () (GROUP_EX))

    (defun get_group_name (ename / key dct rtn)
    (setq
    key (cons 340 ename)
    dct (dictsearch (namedobjdict) "ACAD_GROUP")
    )
    (while (setq dct (member (assoc 3 dct) dct))
    (if (member key (entget (cdadr dct)))
    (setq rtn (cons (cdar dct) rtn))
    )
    (setq dct (cddr dct))
    )
    (reverse rtn)
    )

    (defun group_ex (/ cont grp gname)
    (setq cont 1)
    (while cont
    (setq grp (car (entsel "\nSelect Group to Explode:")))
    (if (setq gname (nth 0 (get_group_name grp)))
    (progn
    (command "-group" "e" gname)
    (setq cont nil)
    )
    (alert "Entity Selected is not a Group! Try Again")
    )
    )
    (princ)
    )
     
    jbryant4, Jun 24, 2004
    #4
  5. sashk

    bshays Guest

    Would you mind posting the routine to explode ALL groups?

    Also, has anyone redesigned the Group Dialog box so that more than 3 lines of text can be viewed?

    Thanks in advance ...
     
    bshays, Jun 30, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.