C# 클래스 Revit.SDK.Samples.RoomSchedule.RoomScheduleForm

Room Schedule form, used to retrieve data from .xls data source and create new rooms.
상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
MyMessageBox ( String strMsg, MessageBoxIcon icon ) : void

My custom message box

RoomScheduleForm ( ExternalCommandData commandData ) : System

Class constructor

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
CreateMyRoomSharedParameter ( ) : bool

Create shared parameter for Rooms category

GetAllLevelsAndPhases ( ) : void

Get all available levels and phases from current document

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

RoomCreationPreparation ( Phase &curPhase ) : bool

Some preparation and check before creating room.

RoomCreationStart ( ) : int

Some preparation and check before creating room.

ShareParameterExists ( String paramName ) : bool

Test if the Room binds a specified shared parameter

UpdateFormDisplay ( bool bUpdateAllRooms ) : void

Update control display of form call this method when create new rooms or switch the room show(show all or show by level)

UpdateNewRoom ( Room newRoom, int row ) : void

Update new room with values in spreadsheet, currently there are three columns need to be set.

UpdateRoomMapSheetInfo ( ) : void

Display current Room sheet information: Excel path

clearIDButton_Click ( object sender, EventArgs e ) : void

Clear all values of shared parameters Allow user to create more unplaced rooms and update map relationships between Revit and spreadsheet rooms.

closeButton_Click ( object sender, EventArgs e ) : void

Close the form.

importRoomButton_Click ( object sender, EventArgs e ) : void

Import room spread sheet and display them in form

levelComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

Filter rooms by specified level.

newRoomButton_Click ( object sender, EventArgs e ) : void

Create new rooms according to spreadsheet based rooms data and specified phase.

showAllRoomsCheckBox_CheckedChanged ( object sender, EventArgs e ) : void

Show all rooms in current document

tablesComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

Select one table(work sheet) and display its data to DataGridView control. after selection, generate data table from data source

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

MyMessageBox() 공개 정적인 메소드

My custom message box
public static MyMessageBox ( String strMsg, MessageBoxIcon icon ) : void
strMsg String message to be popped up
icon MessageBoxIcon icon to be displayed
리턴 void

RoomScheduleForm() 공개 메소드

Class constructor
public RoomScheduleForm ( ExternalCommandData commandData ) : System
commandData ExternalCommandData Revit external command data
리턴 System