Creates an Alignment from the specified CorridorFeatureLine.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.2.3892.0
Syntax
C#
public static ObjectId Create( CorridorFeatureLine corridorFeatureLine, string alignmentName, ObjectId siteId, ObjectId layerId, ObjectId styleId, ObjectId labelSetId, AlignmentType alignmentType )
Visual Basic
Public Shared Function Create ( _ corridorFeatureLine As CorridorFeatureLine, _ alignmentName As String, _ siteId As ObjectId, _ layerId As ObjectId, _ styleId As ObjectId, _ labelSetId As ObjectId, _ alignmentType As AlignmentType _ ) As ObjectId
Visual C++
public: static ObjectId Create( CorridorFeatureLine^ corridorFeatureLine, String^ alignmentName, ObjectId siteId, ObjectId layerId, ObjectId styleId, ObjectId labelSetId, AlignmentType alignmentType )
Parameters
- corridorFeatureLine
- Type: Autodesk.Civil.DatabaseServices.CorridorFeatureLine
The CorridorFeatureLine used to create Alignment.
- alignmentName
- Type: System.String
The name of the created Alignment.
- siteId
- Type: ObjectId
The ObjectId of the site on which the Alignment is created. Pass null to create a siteless Alignment.
- layerId
- Type: ObjectId
The ObjectId of the layer on which the Alignment is created.
- styleId
- Type: ObjectId
The ObjectId of the style applied to the created Alignment.
- labelSetId
- Type: ObjectId
The ObjectId of the labelSet applied to the created Alignment.
- alignmentType
- Type: Autodesk.Civil.DatabaseServices.AlignmentType
Exceptions
Exception | Condition |
---|---|
System.ArgumentException |
Thrown when:
|