Coordinate transformation is converting a coordinate value in one coordinate system into its equivalent in another coordinate system.
Here is a code snippet which demonstrates how to apply Coordinate system Transformation :
string mapSRS = AcMapMap.GetCurrentMap().GetMapSRS();
// create MgCoordinateSystemFactory
MgCoordinateSystemFactory coordSysFactory = new MgCoordinateSystemFactory();
MgCoordinateSystem coordSys = coordSysFactory.Create(mapSRS);
MgCoordinateSystem wgs84Sys = coordSysFactory.Create("LL84");
MgCoordinateSystemTransform transform = null;
transform = coordSysFactory.GetTransform(wgs84Sys, coordSys);
MgCoordinate coord = null;
if (transform != null && !double.IsNaN(pnt.Z))
coord = transform.Transform(pnt.Z, pnt.Y, pnt.Z);
else
coord = transform.Transform(pnt.X, pnt.Y);