GetHostWallId Method


Wall Get Host Wall Id Method

Gets the element ID of the host wall that this wall is associated with.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public ElementId GetHostWallId()

Return Value

ElementId
The element ID of the host wall that this wall is associated with, or invalidElementId if the wall is not associated with any host wall.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →