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

Iterates through the rooms in the project and get the information of all the rooms
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

CreateTags() public méthode

create the room tags for the rooms which lack room tag
public CreateTags ( ) : void
Résultat void

ExportFile() public méthode

export data into an Excel file
public ExportFile ( String fileName ) : void
fileName String
Résultat void

GetProperty() public méthode

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
Résultat String

ReorderRooms() public méthode

reorder all the rooms' number
public ReorderRooms ( ) : void
Résultat void

RoomsData() public méthode

constructor
public RoomsData ( ExternalCommandData commandData ) : System
commandData ExternalCommandData
Résultat System