Creates an connected alignment.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0

Syntax

C#
public static ObjectId CreateConnectedAlignment(
	string alignmentName,
	ObjectId siteId,
	ObjectId layerId,
	ObjectId styleId,
	ObjectId labelSetId,
	ConnectedAlignmentParams connectedAlignmentParams
)
Visual Basic
Public Shared Function CreateConnectedAlignment ( _
	alignmentName As String, _
	siteId As ObjectId, _
	layerId As ObjectId, _
	styleId As ObjectId, _
	labelSetId As ObjectId, _
	connectedAlignmentParams As ConnectedAlignmentParams _
) As ObjectId
Visual C++
public:
static ObjectId CreateConnectedAlignment(
	String^ alignmentName, 
	ObjectId siteId, 
	ObjectId layerId, 
	ObjectId styleId, 
	ObjectId labelSetId, 
	ConnectedAlignmentParams^ connectedAlignmentParams
)

Parameters

alignmentName
Type: System..::..String
Name of the created connected Alignment.
siteId
Type: ObjectId
ObjectId of the site on which the Alignment is created. Pass null to create a siteless alignment.
layerId
Type: ObjectId
ObjectId of the layer on which the Alignment is created.
styleId
Type: ObjectId
ObjectId of the style applied to the created Alignment.
labelSetId
Type: ObjectId
ObjectId of the labelSet applied to the created Alignment.
connectedAlignmentParams
Type: Autodesk.Civil.DatabaseServices..::..ConnectedAlignmentParams
The parameters used to create connected alignment.

Remarks

This method creates an Alignment using ObjectId parameters. Use an ObjectId.NULL for a siteless Alignment.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  1. The objectId of the layer, style, labelSet or site are invalid.
  2. The name of the alignment already exists.
  3. The parameters to create connected alignment are invalid.
  4. No solution using the specified parameters.

See Also