My command is create for metric drawings, but sometimes it will execute in the imperial drawing, so I need to know if a drawing is a metric drawings or imperial drawing, and then set diferent value for differet drawings.
How do I know that relevant information, thanks for any help.
The below pricture show the two different drawing.
Solved! Go to Solution.
try to get the system variable DIMLUNIT. It will return a integer. on the basis of integer you will be able to get which kind is unit setting is there. Suppose if it returns 2 then unit is decimal. If returns 5 then setting is Architectural. Please see below screen shot for details
I meet some problem, I will get 2 when use the below statements:
int DIMLUNIT = System.Convert.ToInt32(Application.GetSystemVariab
Then I change the Drawing Units from Decimal to Architectural, I will get 2 also, I don't know why.
I just want to get 2 when the Drawing Units is Decimal and get 4 when the Drawing Units is Architectural,
How should I do?
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!