private WireFrame m_sketch; //Profile information of opening #endregion Fields #region Constructors /// <summary> /// The default constructor, /// get the information we want from Opening /// get OpeningProperty, BoundingBox and Profile /// </summary> /// <param name="opening">an opening in revit</param> /// <param name="app">application object</param> public OpeningInfo(Opening opening, UIApplication app) { m_opening = opening; m_revit = app; //get OpeningProperty which can use in PropertyGrid control OpeningProperty openingProperty = new OpeningProperty(m_opening); m_property = openingProperty; //get BoundingBox of Opening BoundingBoxXYZ boxXYZ = m_opening.get_BoundingBox(m_revit.ActiveUIDocument.Document.ActiveView); BoundingBox boundingBox = new BoundingBox(boxXYZ); m_boundingBox = boundingBox; //get profile GetProfile(); }
/// <summary> /// The default constructor, /// get the information we want from Opening /// get OpeningProperty, BoundingBox and Profile /// </summary> /// <param name="opening">an opening in revit</param> /// <param name="app">application object</param> public OpeningInfo(Opening opening, UIApplication app) { m_opening = opening; m_revit = app; //get OpeningProperty which can use in PropertyGrid control OpeningProperty openingProperty = new OpeningProperty(m_opening); m_property = openingProperty; //get BoundingBox of Opening BoundingBoxXYZ boxXYZ = m_opening.get_BoundingBox(m_revit.ActiveUIDocument.Document.ActiveView); BoundingBox boundingBox = new BoundingBox(boxXYZ); m_boundingBox = boundingBox; //get profile GetProfile(); }