Application: MoveLinear
Revit Platform: All
Revit Version: 2010.0
First Released For: 8.0
Last Modified: 02/26/2008
Modified By: RZ Autodesk
Programming Language: C#
Skill Level: Beginning
Category: Parameters, Elements
Type: ExternalCommand

Subject: Move an element which is based on Line.
Summary: 
This sample demonstrates how to move element which is based on a Line.

Classes:
Autodesk.Revit.IExternalCommand	   
Autodesk.Revit.LocationCurve
Autodesk.Revit.Creation.Application
Autodesk.Revit.Geometry.Curve

Project Files: 
Command.cs
This file contains the class “Command” which inherits from “IExternalCommand” interface and implements the “Execute” method. The movement operation is implemented in “Execute” method.

Description: 
This sample demonstrates the following functionality:
-	How to move an object based on a curve.

Implementations:
-	This movement can be done via properties “Autodesk.Revit.Element.Location” and “Autodesk.Revit.LocationCurve.Curve”.

Instructions: 
1.	Draw a line, Wall or Beam which is based on a Line.
2.	Select an object, and run the command.
3.	After returning to Revit, it is obvious that the selected object has been moved to a new location in the view.