Railing.Create
Description:
Automatically creates new railings with the specified railing type on all sides of a stairs or ramp element.
Automatically creates new railings with the specified railing type on all sides of a stairs or ramp element.
Overloads (3):
Create(Document,ElementId,ElementId,RailingPlacementPosition)
public static ICollection<ElementId> Create(
Document document,
ElementId stairsOrRampId,
ElementId railingTypeId,
RailingPlacementPosition placePosition
)
-
documentThe document.
-
stairsOrRampIdThe stairs or ramp to which the new railing will host. The stairs or ramp should have no associated railings yet. If the stairs are a part of MultistoryStairs element railings will be populated on all levels.
-
railingTypeIdThe railing type of the new railing to be created.
-
placePositionThe placement position of the new railing.
-
The stairsOrRampId is not a stairs or ramp element. -or- The railingTypeId is not a railing type.
-
A non-optional argument was null
-
A value passed for an enumeration argument is not a member of that enumeration
-
The stairsOrRampId already has associated railings or is in editing mode so association of railings is not permitted.
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
-
The document has no open transaction.