RailingCreate(Document, ElementId, ElementId, ElementId, RailingPlacementPosition) Method |
Creates new railings with the specified railing type on all sides of a stairs instance in a
MultistoryStairs element.
Namespace: Autodesk.Revit.DB.ArchitectureAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static ISet<ElementId> Create(
Document document,
ElementId multistoryStairsId,
ElementId levelId,
ElementId railingTypeId,
RailingPlacementPosition placePosition
)
Public Shared Function Create (
document As Document,
multistoryStairsId As ElementId,
levelId As ElementId,
railingTypeId As ElementId,
placePosition As RailingPlacementPosition
) As ISet(Of ElementId)
public:
static ISet<ElementId^>^ Create(
Document^ document,
ElementId^ multistoryStairsId,
ElementId^ levelId,
ElementId^ railingTypeId,
RailingPlacementPosition placePosition
)
static member Create :
document : Document *
multistoryStairsId : ElementId *
levelId : ElementId *
railingTypeId : ElementId *
placePosition : RailingPlacementPosition -> ISet<ElementId>
Parameters
- document Document
-
The document.
- multistoryStairsId ElementId
-
The id of the MultistoryStairs that contains the stairs which will be the host of this railing.
The stairs should have no associated railings yet.
- levelId ElementId
-
The level of stairs on which the new railing will be created.
The level should be one of levels defining the MultistoryStairs element.
- railingTypeId ElementId
-
The railing type of the new railing to be created.
- placePosition RailingPlacementPosition
-
The placement position of the new railing.
Return Value
ISetElementId
The new railing instances successfully created on the stairs.
Exceptions
See Also