Drafting routine wanted

Discussion in 'AutoCAD' started by Per Morten Josefson, Jun 16, 2004.

  1. Does anybody know a routine that enables you to predefine the location of
    different entities to different layers in abn automatic manner?
    E.g all text goes automatically to the text layer, all dimension to the dim
    layer etc?

    PM Josefson
     
    Per Morten Josefson, Jun 16, 2004
    #1
  2. Yes, it is quite easy.
    You just create a macro that in a tool button or icon such as

    (setq oldlayer (getvar "clayer"))
    (setvar "clayer" " your text layer name here")
    dtext;
    (setvar "clayer" oldlayer)

    Dave Alexander
    Keen Engineering Co. Ltd.
    www.keen.ca
     
    Dave Alexander, Jun 16, 2004
    #2
  3. Per  Morten Josefson

    LARRY Guest

    Try AUTOLAY.LSP
    by Eric Schneider.
    I think you can find it in the customer files section.
    Or try a google search for autolay.lsp
     
    LARRY, Jun 16, 2004
    #3
  4. Per  Morten Josefson

    teiarch Guest

    You might want to think twice about doing this unless all text will be located in layout space. You might also give consideration to what happens to text which is included in editable attribute blocks.
     
    teiarch, Jun 19, 2004
    #4
  5. Per  Morten Josefson

    Graeme Guest

    You can do this with vba using the BeginCommand event handler.
    When someone issues the hatch command ours automatically switches to hatch
    layer.
    dimensions are automatically put on dimension layer etc.
    We have different text layers for different types of text so we use pull
    downs for the text that sets the layer first, but if someone tries to draw
    something other than text on a text layer we have a message box that says
    that text layers are for text only and then it escapes from the command.

    Graeme
     
    Graeme, Jun 21, 2004
    #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.