Results 1 to 5 of 5

Thread: Control Insert Window Explode Checkbox Macro?

  1. #1
    Member
    Join Date
    2006-10
    Posts
    2

    Cool Control Insert Window Explode Checkbox Macro?

    Is there a way when using a macro to preset or control whether the explode checkbox is checked on the insert screen? Possibly by setting a system variable or other way?

    When I run the macro:

    ^C^C-INSERT;"*P:/BLOCKS/MYBLOCK.DWG";\;0;

    the next time I invoke the insert command it appears with the exploded box checked!

  2. #2
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,027

    Default Re: Control Insert Window Explode Checkbox Macro?

    The Insert command remembers the name of the last block inserted - in this case *P:/BLOCKS/MYBLOCK.DWG complete with the asterisk that tells it to explode the block. A bug?
    John B

    "With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg.

  3. #3
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,027

    Default Re: Control Insert Window Explode Checkbox Macro?

    ^C^C-INSERT;"*P:/BLOCKS/MYBLOCK.DWG";\;0;-insert;P:/BLOCKS/MYBLOCK;0,0;;;;erase;last;;

    This seems to work as a macro. It reinserts the block, unexploded, then erases it but remembers the name.
    Last edited by jaberwok; 2009-07-09 at 09:32 AM. Reason: full path required in second Insert
    John B

    "With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg.

  4. #4
    Member
    Join Date
    2006-10
    Posts
    2

    Thumbs up Re: Control Insert Window Explode Checkbox Macro?

    I like the concept of adding the string:
    -insert;P:/BLOCKS/MYBLOCK;0,0;;;;erase;last;;

    never thought of that. Thanks. This is a good work around until I convert the group of things I'm doing to LISP. I'll also hit AutoCAD RE: possible bug with the "sticky" explode checkbox. Again - thanks.

  5. #5
    Administrator RobertB's Avatar
    Join Date
    2001-08
    Location
    Dallas TX USA
    Posts
    5,825

    Default Re: Control Insert Window Explode Checkbox Macro?

    I'm assuming that MyBlock isn't really a normal block, but a "library" drawing that provides component objects or missing standard layers/blocks.

    What happens if you try this?

    ^C^C._-Insert;"*P:/Blocks/MyBlock.dwg";_s;1;_r;0;\._InsName;.

    (Note the period (.) at the end of the macro.) Or you could change the period to the name of a block that you normally insert after this, that you know is going to exist after bringing in MyBlock.dwg.
    R. Robert Bell
    Design Technology Manager
    S P A R L I N G
    Opinions expressed are mine alone and do not reflect the views of Sparling.

Similar Threads

  1. Insert filename into macro?
    By metron4 in forum AutoCAD Customization
    Replies: 2
    Last Post: 2011-03-07, 08:59 PM
  2. Changing a checkbox from another control event
    By Coolmo in forum Dot Net API
    Replies: 2
    Last Post: 2009-10-23, 08:25 PM
  3. Macro to insert symbols in Mtext
    By tedg in forum AutoCAD General
    Replies: 7
    Last Post: 2006-10-17, 08:00 PM
  4. "insert/explode" a linked file?
    By Gordon.Price in forum Revit Architecture - General
    Replies: 4
    Last Post: 2006-05-27, 11:08 AM
  5. Block insert and explode lisp routine
    By rayski in forum AutoLISP
    Replies: 4
    Last Post: 2005-05-19, 01:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •