Application: RoomViewer
Revit Platform: Architecture
Revit Version: 2009.0
First Released For: 8.0
Last Modified: 02/26/2008
Modified By: PP Autodesk
Programming Language: VB.NET
Skill Level: Medium
Category: Geometry
Type: ExternalCommand

Subject: View room boundary wireframe.
Summary: 
This sample demonstrates the usage of room boundary and uses a helper program RevitViewer.

Classes:
Autodesk.Revit.Elements.Room
Autodesk.Revit.Rooms.BoundarySegmentArrayArray

Project Files:                                
Main.vb
As the main DLL source file, it contains the class Command which implements interface IExternalCommand and gets all room boundaries to draw.

Description: 
-	The room object can be queried for its boundary to use in space planning tools.
-	This property Boundary is used to retrieve the segments that constitute the boundary of the room. Each room may have several regions which contain several segments hence. The data will be returned in the form of an array of boundary segment arrays. See the Room.BoundarySegment object for more details about the segments that make up the room topology.

Instructions: 
1.	Draw walls to form a room (four walls, for example), place a room tag. 
2.	Run the external command. An outline of a room will be showed on a viewer.