CreateMajor Method

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.3.1717.0

Syntax

C#

public static ObjectId CreateMajor(
	ObjectId profileViewId,
	ObjectId profileId,
	ObjectId styleId,
	double increment
)

Visual Basic

Public Shared Function CreateMajor ( _
	profileViewId As ObjectId, _
	profileId As ObjectId, _
	styleId As ObjectId, _
	increment As Double _
) As ObjectId

Visual C++

public:
static ObjectId CreateMajor(
	ObjectId profileViewId, 
	ObjectId profileId, 
	ObjectId styleId, 
	double increment
)

Parameters

profileViewId
Type: ObjectId
The ObjectId of the ProfileView in which the label group is located.
profileId
Type: ObjectId
The ObjectId of the Profile in which the label group is located.
styleId
Type: ObjectId
The ObjectId of the ProfileStationLabelGroup style to use.
increment
Type: System.Double
The increment value at which to insert major and minor station labels.

Exceptions

ExceptionCondition
System.ArgumentException Thrown when the profileViewId, profileId or styleId is invalid.

See Also