.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Architectural units

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
gulzar25
516 Views, 3 Replies

Architectural units

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

3 REPLIES 3
Message 2 of 4

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.

Message 3 of 4
mzakiralam
in reply to: gulzar25

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...
Message 4 of 4
mzakiralam
in reply to: gulzar25

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')

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost