C# Class Revit.SDK.Samples.Rooms.CS.RoomsData

Iterates through the rooms in the project and get the information of all the rooms
Mostra file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
CalculateDepartmentArea ( String departName, Double areaValue ) : void

calculate the area of rooms for each department

CreateTags ( ) : void

create the room tags for the rooms which lack room tag

ExportFile ( String fileName ) : void

export data into an Excel file

GetProperty ( Room room, BuiltInParameter paraEnum ) : String

get the room property and Department property according the property name

ReorderRooms ( ) : void

reorder all the rooms' number

RoomsData ( ExternalCommandData commandData ) : System

constructor

Private Methods

Method Description
ClassifyRooms ( ) : void

find out the rooms that without room tag

GetAllRoomsAndTags ( ) : void

get all the rooms and room tags in the project

SortRooms ( ) : bool

sort all the rooms by ascending order according their coordinate

Method Details

CalculateDepartmentArea() public method

calculate the area of rooms for each department
public CalculateDepartmentArea ( String departName, Double areaValue ) : void
departName String the department name
areaValue Double the value of room area
return void

CreateTags() public method

create the room tags for the rooms which lack room tag
public CreateTags ( ) : void
return void

ExportFile() public method

export data into an Excel file
public ExportFile ( String fileName ) : void
fileName String
return void

GetProperty() public method

get the room property and Department property according the property name
public GetProperty ( Room room, BuiltInParameter paraEnum ) : String
room Room a instance of room class
paraEnum BuiltInParameter the property name
return String

ReorderRooms() public method

reorder all the rooms' number
public ReorderRooms ( ) : void
return void

RoomsData() public method

constructor
public RoomsData ( ExternalCommandData commandData ) : System
commandData ExternalCommandData
return System