Help with this explode routine

Discussion in 'AutoCAD' started by sashk, Aug 13, 2004.

  1. sashk

    sashk Guest

    I discoved a small problem with my explode routine. Basically, it has a list of items that I dont want people to explode. I like to use grips and same with other people. When I grip the items first and then use the explode command, it clears them and asks for you to select the items. Can anyone help me so that It will explode with the grips. Also, if you see any other problems with the routine, can you help as well. Thanks a whole bunch. .ZIP attached
     
    sashk, Aug 13, 2004
    #1
  2. sashk

    Joe Burke Guest

    The reason it cancels pre-selected objects is the undo command. (command "_.undo"
    "begin")

    Try this instead.

    (vl-load-com)
    (setq doc (vla-get-activedocument (vlax-get-acad-object)))
    (vla-StartUndoMark doc)

    And in the error handler use (vla-EndUndoMark doc) rather than (command "_.UNDO"
    "END").

    Joe Burke


    items that I dont want people to explode. I like to use grips and same with other
    people. When I grip the items first and then use the explode command, it clears
    them and asks for you to select the items. Can anyone help me so that It will
    explode with the grips. Also, if you see any other problems with the routine, can
    you help as well. Thanks a whole bunch. .ZIP attached
     
    Joe Burke, Aug 13, 2004
    #2
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.