Application: MultistoryStairs
Revit Platform: All
Revit Version: 2018.0
First Released For: 2018.0
Programming Language: C#
Skill Level: Medium
Category: Elements
Type: ExternalApplication

Subject: MultistoryStairs
Summary: 
MultistoryStairs editing utilities, including creating multistory stairs by a standard stairs, adding/removing stairs by picking level.

Classes: 
Autodesk.Revit.UI.IExternalCommand
Autodesk.Revit.UI.Selection.ISelectionFilter
Autodesk.Revit.DB.Architecture.MultistoryStairs

Project Files: 
•	Application.cs - Implements the Revit add-in interface IExternalApplication
•	CreationCommand.cs – A command that creates a multistory stairs by giving a stairs element.
•	AddRemoveStairsCommand.cs – two commands for stairs operation: 
o	A command that add the stairs into multistory stairs by picking the levels (which can align stairs to).
o	A command that remove the stairs from multistory stairs by picking the levels (have aligned stairs to).
•	MySelctionFilter.cs – a selection filters which are used to filter out selectable levels.

Description: 
This sample provides following functionalities.
•	Create a multistory stairs by a standard stairs.
•	Picking some levels to add aligned stairs into the multistory stairs.
•	Picking some levels to remove aligned stairs from the multistory stairs.

Instructions: 
Open a Revit project; draw a component stairs into the project.  Switch to the Add-ins tab.
1.	Select a component stairs and click the “Create single multistory stairs” button on “API_MultistoryStairs” tab to create a multistory stairs element for the selected component stairs.
2.	Select a multistory stairs and click the “Add stairs by picking levels” button on “API_MultistoryStairs” tab, and then select some levels which can align stairs to add stairs into the selected multistory stairs.
3.	Select a multistory stairs and click the “Remove stairs by picking levels” button on “API_MultistoryStairs” tab, and then select some levels have aligned stairs to remove stairs from the selected multistory stairs.