ItemFactoryBase.NewAlignment
Description:
Add a new locked alignment into the Autodesk Revit document.
Add a new locked alignment into the Autodesk Revit document.
Remarks:
These two references must be one of the following combinations:
These two references must be one of the following combinations:
- 2 planar faces
- planar face and reference plane
- 2 lines
- line and point
- line and reference plane
- 2 arcs
- 2 cylindrical faces
-
viewThe view that determines the orientation of the alignment.
-
reference1The first reference.
-
reference2The second reference.
Return Value
Dimension
If creation was successful the new locked alignment dimension is returned,
otherwise an exception with failure information will be thrown.
-
Thrown when the input argument-"view" or "headerReference" or "otherReference"-is.
-
Thrown when the input argument-"headerReference" or "otherReference"-is invalid.