Rebar.SetHostId
Method
Description:
The element that contains the rebar.
The element that contains the rebar.
Parameters
Parameter | Type | Description |
---|---|---|
doc | Document | The document containing both this element and the host element. |
hostId | ElementId | The element that the rebar object belongs to, such as a structural wall, floor, foundation, beam, brace or column. The rebar does not need to be strictly inside the host, but it must be assigned to one host element. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentException | hostId is not a legal Rebar host (see the RebarHostData class). |
ArgumentNullException | A non-optional argument was null |