using Autodesk.AutoCAD.Geometry; // 使用 AutoCAD 的几何库
public static class CoordinateProjection
{
/// <summary>
/// 在 AutoCAD 中实现 XY→XZ 平面坐标转换
/// </summary>
public static Point3d ProjectBetweenStandardPlanes(Point3d point, string fromPlane, string toPlane)
{
switch (fromPlane.ToUpper() + "_" + toPlane.ToUpper())
{
case "XY_XZ": return new Point3d(point.X, point.Z, point.Y); // (1,1,0) → (1,0,1)
case "XY_YZ": return new Point3d(point.Z, point.Y, -point.X);
case "XZ_XY": return new Point3d(point.X, point.Z, point.Y);
case "XZ_YZ": return new Point3d(point.Z, point.X, point.Y);
case "YZ_XY": r