2024 Method
Changes 0
M

Railing.IsValidHostForNewRailing

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.
public static bool IsValidHostForNewRailing(
	Document document,
	ElementId elementId
)
Return Value bool True if new railing can be created and placed on the host, False otherwise.