×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How do I change the Units in 160 drawings?

How do I change the Units in 160 drawings?

How do I change the Units in 160 drawings?

(OP)

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

RE: How do I change the Units in 160 drawings?

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.

RE: How do I change the Units in 160 drawings?

(OP)
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

RE: How do I change the Units in 160 drawings?

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!

RE: How do I change the Units in 160 drawings?

(OP)
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

RE: How do I change the Units in 160 drawings?

you can take PMR's script, save it as a .scr file, then install SCRIPTPRO from the link: http://autodesk.blogs.com/between_the_lines/2007/04/download_new_sc.html
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 :)

RE: How do I change the Units in 160 drawings?


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
www.tecnocentro.it

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources