SectionOffsetLabelGroupCreateMajor(ObjectId, ObjectId, Double, ObjectId) Method

Creates a new instance of a SectionOffsetLabelGroup on the Section in the specified SectionView with the specified label style.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId CreateMajor(
	ObjectId sectionViewId,
	ObjectId sectionId,
	double increment,
	ObjectId labelStyleId
)

Parameters

sectionViewId  ObjectId
The ObjectId of the SectionView in which the label group is located.
sectionId  ObjectId
The ObjectId of the Section in which the label group is labeling.
increment  Double
The increment value at which to insert major offset labels.
labelStyleId  ObjectId
The ObjectId of the SectionOffsetLabelStyle to use.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  • The sectionViewId, sectionId or labelStyleId is invalid.
  • The increment value is less than or equal to 0.
See Also