Is there a .NET equivalent for acdbUcsMatrix?
Editor.CurrentUserCoordinateSystem for active document. For other document (database) you can P/Invoke acdbUcsMatrix or calculate ucs matrix from origin, xdir and ydir:
public static Matrix3d getUcsMatrix (Database db)
Vector3d toXAxis, toYAxis, toZAxis;
toOrigin = db.Ucsorg;
toXAxis = db.Ucsxdir;
toYAxis = db.Ucsydir;
toZAxis = toXAxis.CrossProduct(toYAxis);
Point3d.Origin, Vector3d.XAxis, Vector3d.YAxis, Vector3d.ZAxis,
toOrigin, toXAxis, toYAxis, toZAxis).Inverse();
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.