Wall.SetHostWallId
Description:
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.
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.
Remarks:
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.
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.
public void SetHostWallId(
ElementId hostWallId
)
-
hostWallIdThe 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.
-
A non-optional argument was null
-
Either wall is not qualified for the association. E.g. The wall is a stacked wall.The association would create a circular dependency between walls.The wall spans do not overlap.The walls are misaligned and cannot be associated.A pinned wall cannot participate in the association operation.