Wall
Set
|
Associates this wall with the specified host wall. If the host wall is set, this wall will follow the host wall to move or change slanted angle.
The Hosted parameter will be shown in schedule and view filter.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Parameters
- hostWallId ElementId
- The element ID of the host wall to associate with. To disassociate the wall from its current host wall, use invalidElementId. If the wall is already associated with the specified host wall, this function does nothing.
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
| InvalidOperationException |
|
If the wall is already associated with another host wall, it will first be disassociated from the current host wall before being associated with the new host wall.
After associating a wall with a host wall, the "Offset from Host" parameter can be accessed and modified using BuiltInParameter.WALL_OFFSET_FROM_HOST to control the wall's position relative to its host. The "Offset from Host" parameter is initialized to 0 when the wall is associated with a host.