Architectural units

Architectural units

Anonymous
Not applicable
725 Views
3 Replies
Message 1 of 4

Architectural units

Anonymous
Not applicable

Hi,

I am opening a drawing file whose units are already set to "Architectural - Inches".When im retrieving the coordinates of lines present in drawing it is returning in some other format.How do i change this.Or how do i know in what unit system the values are being returned.

 

Thanks

0 Likes
Accepted solutions (1)
726 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

First, this does not sound like a programmin problem, so wrong forum. Second, it would depend on how you retrieving these units, and what program your doing this in.

0 Likes
Message 3 of 4

Anonymous
Not applicable
you can check system variable 'INSUNITS' which is responsible for unit setting. This system variable returns a integer and from the value of integer you can get the actual unit. for example, if INSUNITS return 1 that means the unit setting is 'Inches'. For details of 'INSUNITS' you can go through below link:

http://exchange.autodesk.com/autocad/enu/online-help/search#WS1a9193826455f5ffa23ce210c4a30acaf-4f8f...
0 Likes
Message 4 of 4

Anonymous
Not applicable
Accepted solution
Another thing I forgot to add in my previous comments, To find linear unit, i.e, Architectural, you can check what 'LUNITS', another system variable, returns. It will also return an integer. if it returns 4 that mean the linear unit is set to 'Architectural'. for details go through below link:

http://exchange.autodesk.com/autocad/enu/online-help/search#WS1a9193826455f5ffa23ce210c4a30acaf-4f56...

You can get system variable value like below:

dim i as integer = Application.GetSystemVariable('LUNITS')