Adjusts the length for the specified connector.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.0.0.377)
Since: 2017
Syntax
C# |
---|
public double AdjustEndLength( Connector partConn, double lengthToAdjust, bool totalLengthOnly ) |
Visual Basic |
---|
Public Function AdjustEndLength ( _ partConn As Connector, _ lengthToAdjust As Double, _ totalLengthOnly As Boolean _ ) As Double |
Visual C++ |
---|
public: double AdjustEndLength( Connector^ partConn, double lengthToAdjust, bool totalLengthOnly ) |
Parameters
- partConn
- Type: Autodesk.Revit.DB..::..Connector
# The connector of the fabrication part to adjust length.
- lengthToAdjust
- Type: System..::..Double
The length to adjust.
- totalLengthOnly
- Type: System..::..Boolean
True if adjust the total length only when adjust length.
Return Value
The adjusted length.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentException | The end of the fabrication part of the connector can not be adjusted. -or- Connector is connected. |
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |