How do I go about determining the drawing units that are being used in a drawing? I want to be able to determine whether the units are set to feet, inches, millimetres, metres etc but can't fathom how to get this info using lisp.
I want to be able to run a quick and simple routine which sets the drawing units in any drawing to my predetermined defaults but I can only figure out how to change between metric and imperial and not any of the sub-classes of these two.
If I use the -AECDWGSETUP command, I can specify that I want to use my required units and precision etc and this works fine if the drawing I run it on has units different to those I require. If howvere the units are already set correctly, I cannot pass the same command string as the prompts are different. If I knew how to determine the units in use I could then add a simple IF/ELSE statement to get around it. Otherwise, is there a system variable which controls the drawing units?
On a side note, I'm using Architecture 2008 and there appears to be a bit of a mess up in the coding of the prompts. If I use the -AECDWGSETUP command and opt for units, I get the following options:
Drawing units:
1. Inches
2. Feet
3. Centimeters
4. Meters
5. Decimeters
6. Meters
In ADT 2006, the same routine gives the following options:
Drawing units:
1. Inches
2. Feet
3. Millimeters
4. Centimeters
5. Decimeters
6. Meters
If I follow this through in 2008, it seems that everything works exactly the same as 2006 and it is just the prompt that is messed up and gives no option for millimetres but two options for metres. I have to select option 3 which actually sets the units to millimetres as it does in 2006.
Is there anybody out there with 2008 that can confirm whether they experience the same glitch or whether it is just me that has a screwy install?