layer merge script

Discussion in 'AutoCAD' started by mary_eatinger, Aug 20, 2004.

  1. I'm trying to write a script to merge layers. We're changing from old standards to new and old layers are making their way into new drawings. I know I need to get all the layers into the drawing first. I know how to do that but when I run this script it hangs up after the first layer merge - I get this:

    Run script . . works OK:

    Deleting layer "arbeam".
    1 layer deleted.
    Command:
    _LAYMRG
    Select object on layer to merge or [Type-it/Undo]: _laymrg
    *Invalid selection*
    Expects a point or Last/Type-it/Undo
    Select object on layer to merge or [Type-it/Undo]:

    So I hit cancel at this point. Here is my script.

    _laymrg T
    ARBEAM

    T
    S-BEAM
    Y
    _laymrg T
    ARWALL

    T
    A-WALL
    Y


    When I type all this in the command line, it works fine. Can anyone tell me what I'm doing wrong?
     
    mary_eatinger, Aug 20, 2004
    #1
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.