ElevationMarker.CreateElevationMarker
Method
Description:
Creates a new ElevationMarker.
Creates a new ElevationMarker.
Syntax
public static ElevationMarker CreateElevationMarker(
Document document,
ElementId viewFamilyTypeId,
XYZ origin,
int initialViewScale
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| document | Document | The document to which the new ElevationMarker will be added. |
| viewFamilyTypeId | ElementId | This ViewFamilyType will be used by all elevations hosted on the new ElevationMarker. |
| origin | XYZ | The desired origin for the ElevationMarker. |
| initialViewScale | Int32 | 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
| Type | Description |
|---|---|
| ElevationMarker | The new ElevationMarker. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | 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. |
| ArgumentNullException | A non-optional argument was null |