This method applies the translation to the line from the desired layer, at the specified position. If the line was already moved, the method will concatenate the translation with the existing movement. The line will be translated only along the direction of the specified layer.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2022
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- translation
- Type: Autodesk.Revit.DBXYZ
The translation vector.
- layer
- Type: Autodesk.Revit.DB.StructureAreaReinforcementLayerType
The layer on which the line stays.
- linePositionIndex
- Type: SystemInt32
The index of the line from the desired layer. It should be an index between 0 and (NumberOfLines-1).
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |
Autodesk.Revit.ExceptionsArgumentOutOfRangeException | linePositionIndex is not in the range [ 0, NumberOfLines-1 ]. -or- A value passed for an enumeration argument is not a member of that enumeration |
Autodesk.Revit.ExceptionsInapplicableDataException | The layer layer isn't active. |
Autodesk.Revit.ExceptionsInvalidOperationException | This AreaReinforcement does not host Rebar. |