Tool to insert then explode a block

Discussion in 'AutoCAD' started by jcarter, Dec 7, 2004.

  1. jcarter

    jcarter Guest

    I have a tool that contains the following command:

    ID__21 [_Button("FAHS", "FABS.bmp", "FABS.bmp")]^C^C-layer;s;E-AUXR;;-INSERT;FABS-EX;S;(getvar "dimscale");;EXPLODE;L;;

    I just added the ";;EXPLODE;L;;" portion to insert "FABS-EX" then explode it, but it stops after inserting the block? Any ideas?
     
    jcarter, Dec 7, 2004
    #1
  2. jcarter

    Tom Roberts Guest

    From the help file:
    Preceding the name of the block with an asterisk (*) explodes the block and
    inserts the individual parts of it. The block definition is not added to the
    drawing.

    Try this
    ^C^C-layer;s;E-AUXR;;-INSERT;*FABS-EX;\(getvar "dimscale");;

    This isnt a vba question you would be better off posting to the
    autodesk.autocad.customization newsgroup

    --
    Regards
    Tom Roberts
    __________________________
    MechWest Design & Drafting
    Perth, Western Australia
     
    Tom Roberts, Dec 7, 2004
    #2
  3. jcarter

    GTVic Guest

    You forgot to account for the insertion point and you had an extra ; at the end.

    to allow user to specify insertion point and rotation:
    ^C^C-layer;s;E-AUXR;;-INSERT;FABS-EX;S;(getvar "dimscale");\\EXPLODE;L;

    to allow user to specify insertion point only with a rotation of 0°
    ^C^C-layer;s;E-AUXR;;-INSERT;FABS-EX;S;(getvar "dimscale");\0;EXPLODE;L;

    to insert without any prompts at 0,0 with a rotation of 0°
    ^C^C-layer;s;E-AUXR;;-INSERT;FABS-EX;S;(getvar "dimscale");0,0;0;EXPLODE;L;
     
    GTVic, Dec 8, 2004
    #3
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.