Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I change the Units in 160 drawings?

Status
Not open for further replies.

frankreid

Mechanical
Mar 9, 2007
92

I have a group of 160 drawings that have the Units set to Engineering and I need to change them all to Decimal. How can I do this in one step outside of AutoCad?
I'm using LT 2009.

Frank
 
Replies continue below

Recommended for you

You could write a script file (.scr). Basically it is a list of commands just like you would type into AutoCAD. Your basic steps would look like the following. Note that filedia 0 tells AutoCAD to open files from command prompt not a dialog box, and obviously you'd want to change the values for each prompt as you need.

filedia
0
open
[NAME OF FILE]
-units
2
2
1
2
0.00
n
save
close

Then repeat for each file name. It's crude but can work without having to learn LISP.
 
Thanks for the info. Since my customer wants it in LT 2009 no Lisp routine would work anyway. I can write a script file but I need a little help understanding your list of commands.

I don't know what the numbers are for. Do they represent the listed items in the Units box? It shows Architecture as first, Decimal is second, etc. Is this what the 2 means? I usually just select Decimal then OK the box. What are the other numbers for, and the letter n?

Thanks for your help.
Frank
 
The numbers are responses to all the units command line prompts, and the n is saying no to measure angle clockwise. I just typed -units and quickly jotted down what the string of commands might look like. You'll need to figure out exactly what works for you.

I suggest you work on one file manually by typing the commands and writing down exactly what you type for the commands and responses.

Good luck!
 
I was typing the Units command but all I got was the Units window. Then I realized I needed to type -units, then it showed the parameters. Thanks for your help.
Frank
 
you can take PMR's script, save it as a .scr file, then install SCRIPTPRO from the link: add all your 160 dwg files that you need to perform the -units operation on, add the script file, let it run! i suggest doing it over lunch and keep your monitor on for everyone else to watch in amazement :)
 
Create a new toolbar button.
In the Button Properties dialog box, assign the following macro to the new button:

^C^C-units 2 2 1 2 0 n


Mauro - Tecnocentro eng srl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor