FabricationRodInfo.SetRodLength
Method
Description:
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.
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.
Parameters
| Parameter | Type | Description |
|---|---|---|
| rodIndex | Int32 | The rod index. |
| newLength | Double |
Return Value
| Type | Description |
|---|---|
| Boolean | Returns true if it was successful otherwise false. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | the index rodIndex is should be in range of rod count. |
| InvalidOperationException | The rod length cannot be set because the hanger is set to automatically host to other elements. |