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

Is there a variable to pull the Zone settings for the current drawing?

1 REPLY 1
Reply
Message 1 of 2
krondys
325 Views, 1 Reply

Is there a variable to pull the Zone settings for the current drawing?

Subject says it all, really-

 

Is there a variable I can pull to get the coordinate system zone assigned to the drawing?  For instance, if my drawing is in UTM coordinates, zone 13, is there a (retrievable) variable set to "UTM27-13"?  I can't seem to find it, if it is.

1 REPLY 1
Message 2 of 2
norman.yuan
in reply to: krondys

Assuming you are using Acad Map 3D or Civil 3D, then yes, you can programmatically pull out that piece of information. In the code project you need to set reference to ManagedMapApi.dll, Then you can get the assigned coordinate system via ProjectModel.Projection property:

 

MapApplication app=HostMapApplicationServices.Application;

ProjectModel project=app.ActiveProject;

string cs=project.Projection;

Norman Yuan

Drive CAD With Code

EESignature

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