在vb中点的坐标相互转换有具体的两个方法很简单
PtWcs2Ucs = ThisDrawing.Utility.TranslateCoordinates(ptWCS, acWorld, acUCS, False)
PtUcs2Wcs = ThisDrawing.Utility.TranslateCoordinates(ptUCS, acUCS, acWorld, False)
但是在net中我一直没有找到到相应代替的方法?
请问有人知道这个在net c#中能怎么解决吗?
Document doc = Application.DocumentManager.MdiActiveDocument;
Database db = doc.Database;
// 拾取的点坐标为 UCS 下的坐标
PromptPointResult ret = doc.Editor.GetPoint("\nSpecify point: ");
if (ret.Status != PromptStatus.OK)
{
return;
}
Point3d pointInUCS = ret.Value;
Point3d pointInWCS = pointInUCS.TransformBy(doc.Editor.CurrentUserCoordinateSystem);