diff --git a/src/IFoxCAD.Cad.Shared/Runtime/Env.cs b/src/IFoxCAD.Cad.Shared/Runtime/Env.cs index 6de5354c7b160140a828cd1dcaf2db7d4da82876..4ad7aef9c9c22bfcc9af072410193847adfb3aed 100644 --- a/src/IFoxCAD.Cad.Shared/Runtime/Env.cs +++ b/src/IFoxCAD.Cad.Shared/Runtime/Env.cs @@ -580,6 +580,11 @@ public static int SetEnv(string? name, string? var) /// Bool public static bool IsUcs() => (short)GetVar("WORLDUCS") == 0; + /// + /// 获得UCS和WCS之间的角度(弧度制) + /// + /// double + public static double GetUcsAngle() => Editor.CurrentUserCoordinateSystem.CoordinateSystem3d.Xaxis.AngleOnPlane(new Plane(Point3d.Origin,Vector3d.ZAxis)); #region dwg版本号/cad版本号/年份 ///