Creates a new ElevationMarker.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2013
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- document
- Type: Autodesk.Revit.DBDocument
The document to which the new ElevationMarker will be added.
- viewFamilyTypeId
- Type: Autodesk.Revit.DBElementId
This ViewFamilyType will be used by all elevations hosted on the new ElevationMarker.
- origin
- Type: Autodesk.Revit.DBXYZ
The desired origin for the ElevationMarker.
- initialViewScale
- Type: SystemInt32
This view scale will be automatically applied to new elevations created on the ElevationMarker. The scale is the ratio of true model size to paper size.
Return Value
The new ElevationMarker.Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | This view family type is not appropriate for ElevationMarkers. -or- The denominator X of the view scale 1/X must be in the range 1 to 24,000. -or- Elevation view creation is not allowed in this family. |
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |