AlignmentCreate(CorridorFeatureLine, String, ObjectId, ObjectId, ObjectId, ObjectId, AlignmentType) Method

Creates an Alignment from the specified CorridorFeatureLine.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId Create(
	CorridorFeatureLine corridorFeatureLine,
	string alignmentName,
	ObjectId siteId,
	ObjectId layerId,
	ObjectId styleId,
	ObjectId labelSetId,
	AlignmentType alignmentType
)

Parameters

corridorFeatureLine  CorridorFeatureLine
The CorridorFeatureLine used to create Alignment.
alignmentName  String
The name of the created Alignment.
siteId  ObjectId
The ObjectId of the site on which the Alignment is created. Pass null to create a siteless Alignment.
layerId  ObjectId
The ObjectId of the layer on which the Alignment is created.
styleId  ObjectId
The ObjectId of the style applied to the created Alignment.
labelSetId  ObjectId
The ObjectId of the labelSet applied to the created Alignment.
alignmentType  AlignmentType
 

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  • The ObjectId of the siteId, layerId, styleId,labelSetId invalid.
  • The Object corridorFeatureLine or anyone of the siteId, layerId, styleId, labelSetId is invalid.
  • The Alignment name is null or empty.
See Also