Creates a new instance of a ProfileStationLabelGroup on the Profile in the specified ProfileView with the specified label style.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public static ObjectId CreateMajor( ObjectId profileViewId, ObjectId profileId, ObjectId styleId, double increment )
VB
Public Shared Function CreateMajor ( profileViewId As ObjectId, profileId As ObjectId, styleId As ObjectId, increment As Double ) As ObjectId
C++
public: static ObjectId CreateMajor( ObjectId profileViewId, ObjectId profileId, ObjectId styleId, double increment )
Parameters
- profileViewId ObjectId
- The ObjectId of the ProfileView in which the label group is located.
- profileId ObjectId
- The ObjectId of the Profile in which the label group is located.
- styleId ObjectId
- The ObjectId of the ProfileStationLabelGroup style to use.
- increment Double
- The increment value at which to insert major and minor station labels.
Return Value
ObjectIdExceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when the profileViewId, profileId or styleId is invalid. |