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

This class can get all the rooms, rooms tags, room tag types and levels
Mostrar archivo Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
AutoTagRooms ( Level level, RoomTagType tagType ) : void

Auto tag rooms with specified RoomTagType in a level

GetTagNumber ( Room room, RoomTagType tagType ) : int

Get the amount of room tags in a room with the specified RoomTagType

RoomsData ( ExternalCommandData commandData ) : System

Constructor of RoomsData

Private Methods

Method Description
GetRoomTagTypes ( ) : void

Get all the RoomTagTypes in the current document

GetRoomWithTags ( ) : void

Get all the room tags which tagged rooms

GetRooms ( ) : void

Find all the rooms in the current document

Method Details

AutoTagRooms() public method

Auto tag rooms with specified RoomTagType in a level
public AutoTagRooms ( Level level, RoomTagType tagType ) : void
level Level The level where rooms will be auto tagged
tagType RoomTagType The room tag type
return void

GetTagNumber() public method

Get the amount of room tags in a room with the specified RoomTagType
public GetTagNumber ( Room room, RoomTagType tagType ) : int
room Room A specified room
tagType RoomTagType A specified tag type
return int

RoomsData() public method

Constructor of RoomsData
public RoomsData ( ExternalCommandData commandData ) : System
commandData ExternalCommandData The data source of RoomData class
return System