Esempio n. 1
0
        internal static void ListRevitUiViews()
        {
            // process revit views
            logMsgln("revit window rectangles| ");
            IList <UIView> views = GetRevitChildUiViews(Uidoc);

            Autodesk.Revit.DB.Rectangle r = null;

            foreach (UIView v in views)
            {
//				Element e = Doc.GetElement(v.ViewId);
                View e = (View)Doc.GetElement(v.ViewId);

                logMsgln("              view name| " + e.Name);
                logMsg("           view extents| " + ListRect(v.GetWindowRectangle()));
                logMsgln("              view type| " + e.ViewType
                         + "  name| " + Enum.GetName(typeof(ViewType), e.ViewType));
                logMsg(nl);

                v.Dispose();
            }
        }
Esempio n. 2
0
 // system rectangle from an AutoDesk rectangle
 internal static Rectangle NewRectangle(Autodesk.Revit.DB.Rectangle r)
 {
     return(NewRectangle(r.Left, r.Top, r.Right, r.Bottom));
 }
Esempio n. 3
0
 internal static string ListRect(Autodesk.Revit.DB.Rectangle r)
 {
     return(string.Format(pattRect, r.Left, r.Top, r.Right, r.Bottom));
 }