SetSegmentVariableDirection Method


Remove the fixed direction from a segment.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public void SetSegmentVariableDirection(
	int iSegment
)
Visual Basic
Public Sub SetSegmentVariableDirection ( _
	iSegment As Integer _
)
Visual C++
public:
void SetSegmentVariableDirection(
	int iSegment
)

Parameters

iSegment
Type: System Int32
Index of the segment (0 to NumberOfSegments - 1).

Remarks

The segment's angle will be allowed to vary, with a range of 90 degrees. The segment must have at least two constraints.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException iSegment is not between 0 and NumberOfSegments.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →