wildcards with rename command ?

Discussion in 'AutoCAD' started by bcf, Jul 28, 2003.

  1. bcf

    bcf Guest

    I use the rename command to change multiple layers exchanging the first letters of their names. The dialogue box allows me to rename "C1*" to "M1*" but when I tried to include it in a lisp routine the command line version of rename gives an invalid character when I input a wildcard. Do I need to add aspecial character in front of the wildcard ?
     
    bcf, Jul 28, 2003
    #1
  2. bcf

    bcf Guest

    Looks good on paper Dave, but no go. This yields an "invalid layer name" the same as entering the "*" directly.
    I guess its a function of the command "rename" that it won't accept wildcard characters unless you are using the dialogue box version.
     
    bcf, Jul 28, 2003
    #2
  3. No. They work from the command line as well. Let me check my menu and I will get back to you.



     



    Dave Alexander



     



    "bcf" <> wrote in message news:...

    Looks good on paper Dave, but no go. This yields an "invalid layer name" the same as entering the "*" directly.
    I guess its a function of the command "rename" that it won't accept wildcard characters unless you are using the dialogue box version.
     
    Dave Alexander, Jul 28, 2003
    #3
  4. Son of a gun.  You are right. You could write a lisp to create a list of layer names and then rename them one at a time.



     



    Dave Alexander



     



    "bcf" <> wrote in message news:...

    Looks good on paper Dave, but no go. This yields an "invalid layer name" the same as entering the "*" directly.
    I guess its a function of the command "rename" that it won't accept wildcard characters unless you are using the dialogue box version.
     
    Dave Alexander, Jul 28, 2003
    #4
  5. bcf

    R.K. McSwain Guest

    I believe you are right, as I remember it, the dialog version accepts wildcards, but not the command line version
     
    R.K. McSwain, Jul 28, 2003
    #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.