SetSegmentLength Method


Sets the value of the bent fabric sheet segment(like A, B, C, D etc.)

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2017

Syntax

C#
public void SetSegmentLength(
	ElementId segmentParameterId,
	double value
)
Visual Basic
Public Sub SetSegmentLength ( _
	segmentParameterId As ElementId, _
	value As Double _
)
Visual C++
public:
void SetSegmentLength(
	ElementId^ segmentParameterId, 
	double value
)

Parameters

segmentParameterId
Type: Autodesk.Revit.DBElementId
The segment ID of the bent fabric sheet.
value
Type: SystemDouble
The length value to set

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The given value for value is not a number -or-
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The given value for value must be between 0 and 30000 feet.

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 →