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

Iterates through the rooms in the project and get the information of all the rooms
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
GenRoomsDataTable ( Level level ) : DataTable

Generate all rooms which are located in specified level. A DataTable data object will be generated after this method call.

GetProperty ( System.Windows.Forms.Document activeDoc, Room room, BuiltInParameter paraEnum, bool useValue ) : String

Get the room property value according the parameter name

RoomsData ( System.Windows.Forms.Document activeDocument ) : System

Constructor

ShareParameterExists ( Room roomObj, String paramName, Parameter &sharedParam ) : bool

Check to see whether specified parameter exists in room object.

UpdateParameters ( ReadOnlyCollection specifiedParams ) : void

Get all parameters to be displayed in DataGridView.

UpdateRoomsData ( ) : void

Update rooms data after room creation happens in Revit

비공개 메소드들

메소드 설명
CompRoomByNumber ( Room room1, Room room2 ) : int

Sort the rooms by number

GetAllRooms ( System.Windows.Forms.Document activeDoc ) : void

Get all rooms in current Revit project

InitializeParameters ( ) : void

Initialize the parameters displayed in DataGridView control

메소드 상세

GenRoomsDataTable() 공개 메소드

Generate all rooms which are located in specified level. A DataTable data object will be generated after this method call.
public GenRoomsDataTable ( Level level ) : DataTable
level Level the specified level to retrieve rooms
리턴 System.Data.DataTable

GetProperty() 공개 정적인 메소드

Get the room property value according the parameter name
public static GetProperty ( System.Windows.Forms.Document activeDoc, Room room, BuiltInParameter paraEnum, bool useValue ) : String
activeDoc System.Windows.Forms.Document Current active document.
room Room an instance of room class
paraEnum BuiltInParameter the parameter used to get parameter value
useValue bool convert parameter to value type or not. /// if true, the value of parameter will be with unit. /// if false, the value of parameter will be without unit.
리턴 String

RoomsData() 공개 메소드

Constructor
public RoomsData ( System.Windows.Forms.Document activeDocument ) : System
activeDocument System.Windows.Forms.Document Revit project.
리턴 System

ShareParameterExists() 공개 정적인 메소드

Check to see whether specified parameter exists in room object.
public static ShareParameterExists ( Room roomObj, String paramName, Parameter &sharedParam ) : bool
roomObj Room Room object used to get parameter
paramName String parameter name to be checked
sharedParam Parameter shared parameter returned
리턴 bool

UpdateParameters() 공개 메소드

Get all parameters to be displayed in DataGridView.
public UpdateParameters ( ReadOnlyCollection specifiedParams ) : void
specifiedParams ReadOnlyCollection all parameters specified by user.
리턴 void

UpdateRoomsData() 공개 메소드

Update rooms data after room creation happens in Revit
public UpdateRoomsData ( ) : void
리턴 void