I don't have any trouble changing a dim style with spaces to one without via
script or menu macro using LT 2002. Single quotes were no problem either.
Are you using a previous version?
For script:
-rename dimstyle "Dim style with spaces" NewName
For macro:
-rename;dimstyle;"Dim style with spaces";NewName;
Your message implies that you are trying to use ;'s in a script for enters,
which is not supported. Scripts are only interpreted enough to pass the
statements to the command line as opposed to menu macros which allow escape
characters, diesel, etc.
Now of course using scripts/macros assumes you will already know the names
you want to change. If you want something to determine whether a name has
spaces and/or quotes and change it accordingly, then you will need a little
lisp and use full AutoCAD to run it or get an add-on to enable lisp in LT.
Aubrie
"tomdinmn" wrote in message
news:f12deef.-1@WebX.maYIadrTaRb...
> I need help writing a script file to rename dimension styles that have
spaces in them.
> I tried using:
>
> -rename;dimstyle;"DIM 1-8";DIM_1-8;
>
> and that didn't work.
>
> I also tried:
> -rename;dimstyle;DIM 1-8;DIM_1-8;
> but the "spaces in the dimstyle name are interpreted as "returns"
>
> I also have some dimstyles with an ' in the name (i.e. Dim 1-3')
>
> Any help is appreciated.
>
> Tom
>