/// <summary> /// Constructor. /// </summary> protected ProjectPositionUtils() { _location = DocumentManager.Instance.CurrentDBDocument.ActiveProjectLocation; if (Convert.ToInt32(DocumentManager.Instance.CurrentDBDocument.Application.VersionNumber) <= 2018) { //try //{ // _position = _location.get_ProjectPosition(Autodesk.Revit.DB.XYZ.Zero); // _angle = _position.Angle; //} //catch (Exception ex) //{ // Utils.Log(string.Format("ERROR {0}: {1}", this, ex.Message)); //} } else { _position = _location.GetProjectPosition(Autodesk.Revit.DB.XYZ.Zero); _angle = _position.Angle; } }