Share

Alignment.CreateConnectedAlignment Method

Creates an connected alignment.



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

Syntax

C#

public static ObjectId CreateConnectedAlignment(
	string alignmentName,
	ObjectId siteId,
	ObjectId layerId,
	ObjectId styleId,
	ObjectId labelSetId,
	ConnectedAlignmentParams connectedAlignmentParams
)

VB

Public Shared Function CreateConnectedAlignment ( 
	alignmentName As String,
	siteId As ObjectId,
	layerId As ObjectId,
	styleId As ObjectId,
	labelSetId As ObjectId,
	connectedAlignmentParams As ConnectedAlignmentParams
) As ObjectId

C++

public:
static ObjectId CreateConnectedAlignment(
	String^ alignmentName, 
	ObjectId siteId, 
	ObjectId layerId, 
	ObjectId styleId, 
	ObjectId labelSetId, 
	ConnectedAlignmentParams^ connectedAlignmentParams
)

Parameters

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

Return Value

ObjectId

Exceptions

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

Remarks

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

See Also

Reference

Was this information helpful?