IsValidHostForNewRailing Method


Checks whether new railing can be created and placed on the specified host.

Namespace: Autodesk.Revit.DB.Architecture
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2013

Syntax

C#
public static bool IsValidHostForNewRailing(
	Document document,
	ElementId elementId
)
Visual Basic
Public Shared Function IsValidHostForNewRailing ( _
	document As Document, _
	elementId As ElementId _
) As Boolean
Visual C++
public:
static bool IsValidHostForNewRailing(
	Document^ document, 
	ElementId^ elementId
)

Parameters

document
Type: Autodesk.Revit.DB Document
The document.
elementId
Type: Autodesk.Revit.DB ElementId
The element to check.

Return Value

True if new railing can be created and placed on the host, False otherwise.

Remarks

This function will return true for stairs or ramps which can host new railings. Stairs or ramps can host new railings only when they have no associated railing and they are not in editing mode.

Exceptions

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

See Also