menu customisation

Discussion in 'AutoCAD' started by Philip Russell, Sep 18, 2003.

  1. Hi all,

    I am looking at customising AutoCAD 2000 menus. I have a series of standard
    blocks that I wish to insert from a pull down menu.

    I am wondering if there is a lisp routine I can place in the mnu file to
    ensure when the blocks are inserted from the pull down menu they are
    inserted on the right layers.

    Maybe there is an easier way without adding the lisp routine every time I
    insert a block.

    I thank you in advance for your help.

    Philip
     
    Philip Russell, Sep 18, 2003
    #1
  2. Philip Russell

    Mark Guest

    I do a lot of survey work and use blocks all the time for floorplans and
    this is what I have done: I have a dwt template file which includes a
    drawing with all the blocks I use in it but are not shown, I also have a
    tool bar which I created with icons for each block then on those buttons I
    wrote this macro: ^c la s layername i blockname
    what the above means is this ^c = cancel any active commands, la = layer
    command, s = set, layername = the layer you want to make current, then the 2
    spaces between layername and i are essential, i = insert, blockname = the
    name of the block you want to insert. Remember that the space = spacebar so
    if it doesn't work then play about with the spaces. Hope this helps, another
    usefull command for creating your own macros is ^m = enter.

    Mark
     
    Mark, Sep 18, 2003
    #2
  3. Some commands needs more than one ^C to cancel.
    And spaces are hard to see, use semicolon instead.
    Use underscore to make the commands language independent.
    Use minus sign to inwoke the good old command line version of a command.
    ^c^c_la;_s;layername;;_-i;blockname;

    Conny
     
    Conny Klasson, Sep 18, 2003
    #3
  4. Also don't use _layer;s use _layer;m which will create the layer if it doesn't exist


    --
    Andrew Nielsen ;o)>

    Andysan1@@bigpond.com
    Remove extra @ to send

    | Some commands needs more than one ^C to cancel.
    | And spaces are hard to see, use semicolon instead.
    | Use underscore to make the commands language independent.
    | Use minus sign to inwoke the good old command line version of a command.
    | ^c^c_la;_s;layername;;_-i;blockname;
    |
    | Conny
    |
    | "Mark" <> skrev i meddelandet
    | | > I do a lot of survey work and use blocks all the time for floorplans and
    | > this is what I have done: I have a dwt template file which includes a
    | > drawing with all the blocks I use in it but are not shown, I also have a
    | > tool bar which I created with icons for each block then on those buttons I
    | > wrote this macro: ^c la s layername i blockname
    | > what the above means is this ^c = cancel any active commands, la = layer
    | > command, s = set, layername = the layer you want to make current, then the
    | 2
    | > spaces between layername and i are essential, i = insert, blockname = the
    | > name of the block you want to insert. Remember that the space = spacebar
    | so
    | > if it doesn't work then play about with the spaces. Hope this helps,
    | another
    | > usefull command for creating your own macros is ^m = enter.
    | >
    | > Mark
    | >
    | >
    | >
    | > | > > Hi all,
    | > >
    | > > I am looking at customising AutoCAD 2000 menus. I have a series of
    | > standard
    | > > blocks that I wish to insert from a pull down menu.
    | > >
    | > > I am wondering if there is a lisp routine I can place in the mnu file to
    | > > ensure when the blocks are inserted from the pull down menu they are
    | > > inserted on the right layers.
    | > >
    | > > Maybe there is an easier way without adding the lisp routine every time
    | I
    | > > insert a block.
    | > >
    | > > I thank you in advance for your help.
    | > >
    | > > Philip
    | > >
    | > >
    | >
    | >
    |
    |
     
    Andrew NIELSEN, Sep 20, 2003
    #4
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.