Revit 2025.3 API
Fabrication |
Attaches the hanger rod to another bearer hanger.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public void AttachToHanger( ElementId hangerId, int rodIndex, XYZ position )
Public Sub AttachToHanger ( hangerId As ElementId, rodIndex As Integer, position As XYZ )
public: void AttachToHanger( ElementId^ hangerId, int rodIndex, XYZ^ position )
member AttachToHanger : hangerId : ElementId * rodIndex : int * position : XYZ -> unit
Parameters
| Exception | Condition |
|---|---|
| ArgumentException | The hanger is not a bearer hanger. -or- The point is not on hanger bearer centerline. |
| ArgumentNullException | A non-optional argument was null |
| ArgumentOutOfRangeException | the index rodIndex is should be in range of rod count. |
See Also