AlignmentCreate(CorridorFeatureLine, String, ObjectId, ObjectId, ObjectId, ObjectId, AlignmentType) Method |
Creates an Alignment from the specified CorridorFeatureLine.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.7.0.1190
Syntaxpublic static ObjectId Create(
CorridorFeatureLine corridorFeatureLine,
string alignmentName,
ObjectId siteId,
ObjectId layerId,
ObjectId styleId,
ObjectId labelSetId,
AlignmentType alignmentType
)
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
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
ExceptionsException | Condition |
---|
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