C# Class BuildingCoder.CmdListAllRooms

Inheritance: IExternalCommand
Mostra file Open project: jeremytammik/the_building_coder_samples

Public Methods

Method Description
BoundingBoxString2 ( BoundingBoxXYZ bb ) : string

Return a string for a bounding box which may potentially be null with its coordinates formatted to two decimal places.

DistinguishRoomsDraft ( Document doc, StringBuilder &sb, int &numErr, int &numWarn ) : void

Draft for method to distinguish 'Not Placed', 'Redundant' and 'Not Enclosed' rooms.

Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
ListRoomData ( Room room ) : void

List some properties of a given room to the Visual Studio debug output window.

Private Methods

Method Description
DistinguishRoom ( Room room ) : RoomState

Distinguish 'Not Placed', 'Redundant' and 'Not Enclosed' rooms.

GetBoundingBox ( IList boundary ) : BoundingBoxXYZ

Return bounding box calculated from the room boundary segments. The lower left corner turns out to be identical with the one returned by the standard room bounding box.

GetConvexHullOfRoomBoundary ( IList boundary ) : List

Return bounding box calculated from the room boundary segments. The lower left corner turns out to be identical with the one returned by the standard room bounding box.

Method Details

BoundingBoxString2() public static method

Return a string for a bounding box which may potentially be null with its coordinates formatted to two decimal places.
public static BoundingBoxString2 ( BoundingBoxXYZ bb ) : string
bb BoundingBoxXYZ
return string

DistinguishRoomsDraft() public method

Draft for method to distinguish 'Not Placed', 'Redundant' and 'Not Enclosed' rooms.
public DistinguishRoomsDraft ( Document doc, StringBuilder &sb, int &numErr, int &numWarn ) : void
doc Document
sb StringBuilder
numErr int
numWarn int
return void

Execute() public method

public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
return System.Result

ListRoomData() public method

List some properties of a given room to the Visual Studio debug output window.
public ListRoomData ( Room room ) : void
room Room
return void