RVTDocs.com

Railing.IsValidHostForNewRailing

Method
Description:
Checks whether new railing can be created and placed on the specified host.
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.
Syntax
public static bool IsValidHostForNewRailing(
	Document document,
	ElementId elementId
)
Parameters
Parameter Type Description
document Document The document.
elementId ElementId The element to check.
Return Value
Type Description
Boolean True if new railing can be created and placed on the host, False otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null