Creates a new instance of StationElevationLabel on the profileview with the specified label style and marker style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.2.3892.0
Syntax
C#
public static ObjectId Create( ObjectId profileViewId, ObjectId labelStyleId, ObjectId markerStyleId, double station, double elevation )
Visual Basic
Public Shared Function Create ( _ profileViewId As ObjectId, _ labelStyleId As ObjectId, _ markerStyleId As ObjectId, _ station As Double, _ elevation As Double _ ) As ObjectId
Visual C++
public: static ObjectId Create( ObjectId profileViewId, ObjectId labelStyleId, ObjectId markerStyleId, double station, double elevation )
Parameters
- profileViewId
- Type: ObjectId
The ObjectId of profile view in which the label is located.
- labelStyleId
- Type: ObjectId
The ObjectId of StationElevationLabel style.
- markerStyleId
- Type: ObjectId
The ObjectId of StationElevationLabel's marker style.
- station
- Type: System.Double
The station value at which to insert StationElevationLabel.
- elevation
- Type: System.Double
The elevation value at which to insert StationElevationLabel.
Exceptions
Exception | Condition |
---|---|
System.ArgumentException | Thrown when the profileViewId, labelStyleId or markerStyleId is invalid. |