Set the rod length of the hanger for the specified rod index, excluding top extension. The hanger must not be set to be auto-hosted.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since:
2018
Syntax
C# |
---|
public bool SetRodLength(
int rodIndex,
double newLength
) |
Visual Basic |
---|
Public Function SetRodLength ( _
rodIndex As Integer, _
newLength As Double _
) As Boolean |
Visual C++ |
---|
public:
bool SetRodLength(
int rodIndex,
double newLength
) |
Parameters
- rodIndex
- Type: System..::..Int32
The rod index.
- newLength
- Type: System..::..Double
Return Value
returns true if it worked.
Exceptions
See Also