The DoorGeometry object is used to transform Revit geometry data to appropriate format for GDI.
示例#1
0
        /// <summary>
        /// Preview door's geometry when user select one door family in customizeDoorOpeningDataGridView.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void customizeDoorOpeningDataGridView_RowEnter(object sender, DataGridViewCellEventArgs e)
        {
            DoorFamily selectedDoorFamily = customizeDoorOpeningDataGridView.Rows[e.RowIndex].DataBoundItem as DoorFamily;

            m_currentGraphic = selectedDoorFamily.Geometry;

            // update the dialog box's display.
            previewPictureBox.Refresh();
        }
示例#2
0
        /// <summary>
        /// Preview door's geometry when user select one door family in customizeDoorOpeningDataGridView.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void customizeDoorOpeningDataGridView_RowEnter(object sender, DataGridViewCellEventArgs e)
        {
            DoorFamily selectedDoorFamily = customizeDoorOpeningDataGridView.Rows[e.RowIndex].DataBoundItem as DoorFamily;
            m_currentGraphic              = selectedDoorFamily.Geometry;

             // update the dialog box's display.
            previewPictureBox.Refresh();
        }