RailingCanBeHostedByElement Method


Checks whether the specified element can be used as a host for the railing. The host can be:
  • stairs
  • stairs component
  • ramp
  • floor
  • slab edge
  • wall
  • roof

Namespace: Autodesk.Revit.DB.Architecture
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.2.0.0)
Since: 2017

Syntax

C#
public bool RailingCanBeHostedByElement(
	ElementId hostId
)
Visual Basic
Public Function RailingCanBeHostedByElement ( _
	hostId As ElementId _
) As Boolean
Visual C++
public:
bool RailingCanBeHostedByElement(
	ElementId^ hostId
)

Parameters

hostId
Type: Autodesk.Revit.DB ElementId
Element id to check.

Return Value

True if the element can be used as host for the railing.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →