Gets the orientation of a segment.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Syntax
| C# |
|---|
public RectangularGridSegmentOrientation GetSegmentOrientation( int segmentId ) |
| Visual Basic |
|---|
Public Function GetSegmentOrientation ( _ segmentId As Integer _ ) As RectangularGridSegmentOrientation |
| Visual C++ |
|---|
public: RectangularGridSegmentOrientation GetSegmentOrientation( int segmentId ) |
Parameters
- segmentId
- Type: System..::..Int32
The id of a segment in this CompoundStructure.
Return Value
The orientation of the specified segment.
Remarks
The boundaries of the regions of a vertically compound structure consist of vertical
horizontal segments.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | The segment id is invalid. |
| Autodesk.Revit.Exceptions..::..InvalidOperationException | This operation is valid only for vertically compound structures. |