Application: DisplacementElementAnimation
Revit Platform: All
Revit Version: 2014.0
First Released For: 2014.0
Programming Language: C#
Skill Level: High
Category: Elements, Views
Type: ExternalApplication

Subject: Use DisplacementElement to animate building members
Summary: 
Use DisplacementElements to animate groups of building structural members, proceeding sequentially from bottom level to top.

Classes: 
Autodesk.Revit.UI.IExternalCommand
Autodesk.Revit.DB.DisplacementElement
Autodesk.Revit.UI.Events.IdlingEventArgs

Project Files: 
•	Application.cs - Implements the Revit add-in interface IExternalApplication to add the ribbon panel.
•	DisplacementStructureModelAnimatorCommand.cs - The command that initializes and starts the model animation.
•	DisplacementStructureModelAnimator.cs - A class that executes an animation of structural model elements using DisplacementElements.

Description: 
This sample creates and executes an animation of a model by assembling it from the ground up.  The members are sorted into groups based on category and level and displaced from their actual position.  Each group is then animated using the Idling event until the model is reassembled.

Notes:
•	Displacement elements allow this to be done without physically moving the elements (which would distort the model due to joins and geometric relationships between the elements)
•	The elements are grouped using parent and child displacements.  This allows all elements to inherit a displacement in Z while varying in X and Y.
•	This sample is geared towards a structural model.  Only foundations, structural columns, walls, floors, and structural framing will be displaced and animated. 

Instructions: 
Open the sample model or another structural model.  Select the Add-ins->Displacement->Displacement animation command.  The animation will begin and run automatically. 

Application: DisplacementElementAnimation
Revit Platform: All
Revit Version: 2014.0
First Released For: 2014.0
Programming Language: C#
Skill Level: High
Category: Elements, Views
Type: ExternalCommand

Subject: Use DisplacementElement to animate building members step by step
Summary: 
Use DisplacementElements to animate groups of building structural members, proceeding sequentially from bottom level to top. Be able to run the steps one-by-one.

Classes: 
Autodesk.Revit.UI.IExternalCommand
Autodesk.Revit.DB.DisplacementElement

Project Files: 
•	DisplacementStructureModelAnimatorCommand.cs - The command that initializes and starts the model animation step by step in each execution.
•	DisplacementStructureModelAnimator.cs - A class that executes an animation of structural model elements using DisplacementElements.

Description: 
This sample creates and executes an animation of a model by assembling it from the ground up.  The members are sorted into groups based on category and level and displaced from their actual position.  Each group is then animated by every execution of command until the model is reassembled.

Notes:
•	Displacement elements allow this to be done without physically moving the elements (which would distort the model due to joins and geometric relationships between the elements)
•	The elements are grouped using parent and child displacements.  This allows all elements to inherit a displacement in Z while varying in X and Y.
•	This sample is geared towards a structural model.  Only foundations, structural columns, walls, floors, and structural framing will be displaced and animated by steps. 

Instructions: 
Open the sample model or another structural model.  Select the Add-ins-> DisplacementStructureModelAnimatorCommandStepByStep.  The animation will begin and run by executing the command repeatedly.