change layers routine

Discussion in 'AutoCAD' started by jojo, May 5, 2006.

  1. jojo

    jojo Guest

    Hi all....

    I need a command to change layers.

    This is how it would work

    Select Command: Change to Std layers
    user input: cross a section of the drawing that will be changed
    prompt: which option?
    user input: A

    when user crossed a section of the drawing, 4 layers were selected
    1-wall
    1-text
    1-dim
    1-footing (or 2-footing, depending which layers were current)

    the "Change to Std layers" command changes the selected
    layers to:
    1-std-A-wall
    1-std-A-text
    1-std-A-dim
    1-std-A-footing

    It would never change 1-wall to 2-std-A-wall.

    see what I mean?
    sorry if I'm not explaining this well.

    I am using AutoCAD 2006

    Does this already exist?
    Can someone help me with a routine?

    Thanks,
    jojo
     
    jojo, May 5, 2006
    #1
  2. Other than the part about how it is activated, which I don't really
    understand, this is routine that could use a command call for the RENAME
    command. You could aim the routine with object selection, extract the layer
    names of the selections, test for the presence of the "std-" string in the
    right position of those layers, then rename the layers that pass that test.

    I'd doubt that this will be sitting around for your use. Depending on your
    experience, it's not that hard to write really, but you have to ask yourself
    if it is worth the time (unless you look at it as skills development).


    MichaelB
    www.michaelbulatovich.ca
     
    Michael Bulatovich, May 6, 2006
    #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.