Accessing MAP global coordinate system with VBA

Accessing MAP global coordinate system with VBA

Anonymous
Not applicable
605 Views
3 Replies
Message 1 of 4

Accessing MAP global coordinate system with VBA

Anonymous
Not applicable
Is it possible to determine the global coordinate system that a drawing is associated with? Is it also possible to get the properties of that coordiante system such as ellipsoid parameters and projection parameters?

Thanks
Todd
0 Likes
606 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
You can get the coordinate system from the current
project by using the Project.CurrentProjection Property.  You can also get
the coordinate system from an attached drawing using
AttachedDrawing.Projection.

 

You can not get the coordinate system parameters
however. 

 

Scott


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Is
it possible to determine the global coordinate system that a drawing is
associated with? Is it also possible to get the properties of that coordiante
system such as ellipsoid parameters and projection parameters?

Thanks
Todd

0 Likes
Message 3 of 4

Anonymous
Not applicable
Hi Scott
Forgive me for being ignorant, but I can't find any reference to the Project or AttachedDrawing in the acad help system (AcadMap 5). Could you elaborate please? Thanks again.
Todd
0 Likes
Message 4 of 4

Anonymous
Not applicable
Todd,

 

Within VBA you have to reference the 'AutoCAD Map
2000i Release 4.5' type library.  Also check the AcMapAtm.chm file in the
AutoCAD Map\Help directory for documentation on the API.

 

Good Luck,

 

Scott


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hi
Scott
Forgive me for being ignorant, but I can't find any reference to the
Project or AttachedDrawing in the acad help system (AcadMap 5). Could you
elaborate please? Thanks again.
Todd
0 Likes