Explode selection set.

Discussion in 'AutoCAD' started by Casey, Mar 17, 2005.

  1. Casey

    Casey Guest

    How come!!!

    I need to explode a selection set of AEC objects all at once. I am using
    Vanilla R2004 on WinXP. We receive drawings from architects using
    architectural desktop. I have the object enablers loaded so their walls,
    doors, windows etc, show up in my drawing as AEC Objects.

    The long way around, I can select all the aec objects using:
    (setq ss (ssget "X" '((0 . "AEC*"))))

    but I can't explode them all at once in a lisp or Toolbar button. If you
    step through each object in the selection set, it doesn't work either
    because when you explode a door, the wall fills the opening back in, which
    does not work for me.

    Currently, I can do it by typing it all in at the command prompt

    Command: (setq ss (ssget "X" '((0 . "AEC*"))))
    <Selection set: 2a1>

    Command: EXPLODE

    Select objects: P
    1021 found

    Select objects: <ENTER>

    This works, but I'm looking for a way to automate this. Either in a lisp or
    a toolbar button. Nothing I've tried works.

    If I put the commands I type into a toolbar button, it doesn't work Into a
    lisp, No go....

    Any suggestions or a nudge in the right direction would be greatly
    appreciated.

    Casey
     
    Casey, Mar 17, 2005
    #1
  2. Casey

    Jeff Mishler Guest

    Temporarily set the sysvar QAFLAGS to 1, run the (command "explode" ss ""),
    reset QAFLAGS to 0
     
    Jeff Mishler, Mar 17, 2005
    #2
  3. Casey

    Casey Guest

    Cool... Thanks Jeff

    One more question... what does QAFLAGS do and where is it documented? Help
    turned up nothing...

    Casey
     
    Casey, Mar 17, 2005
    #3
  4. Casey

    Jeff Mishler Guest

    Jeff Mishler, Mar 17, 2005
    #4
  5. Casey

    Daron Guest

    or... if your selection set is SSET,

    (sssetfirst nil SSET)
    (command ".explode")

    this will explode everything.

    :eek:)
    daron
     
    Daron, Mar 18, 2005
    #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.