Renaming Layers

Discussion in 'AutoCAD' started by Daryl J. Edwards, Oct 15, 2004.

  1. In order for me to convert AutoCAD drawings to the CableCAD format, I
    need to have all the layers as numbers, and so far what has been done
    in the past is to do this manually. I would like to automate this
    process, but I have no idea how to go about it. Can anybody help me?
    I've never written a macro in AutoCAD before.

    BTW - I'm running AutoCAD LT 2000I, on Windows 2000 Pro.

    Thanks in advance for the help!
     
    Daryl J. Edwards, Oct 15, 2004
    #1
  2. Daryl J. Edwards

    Paul Turvill Guest

    If you have Express Tools, try LAYTRANS.
    ___
     
    Paul Turvill, Oct 15, 2004
    #2
  3. I don't think a macro would do it, but this could be done with LISP.
    It wouldn't take a lot of lines of code to generate
    a command line interface that would give you the name of a
    layer and ask you for the new numeric name. Even easier to
    just name them in numeric order...
    Not something I'd recommend for the rank beginner, though,
    unless you are going to do it hundreds of times.

    Hey! UofT. My alma mater, 8t7. That sounds like a long time ago.
     
    Michael Bulatovich, Oct 15, 2004
    #3
  4. I just remembered. There's a routine called NEXT.LSP on my site
    which does the cycling-through-the-layers part of what you need.
    You could rip-off that code as a place to start.
     
    Michael Bulatovich, Oct 15, 2004
    #4
  5. Scratch that. I just noticed you said "LT" : (
    No LISP on LT without add-ons.
     
    Michael Bulatovich, Oct 15, 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.