Creates a profile of EG type from a corridor feature line.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public static ObjectId CreateFromFeatureLine(
string profileName,
CorridorFeatureLine corridorFeatureLine,
ObjectId alignmentId,
ObjectId layerId,
ObjectId styleId,
ObjectId labelSetId
) |
Visual Basic |
---|
Public Shared Function CreateFromFeatureLine ( _
profileName As String, _
corridorFeatureLine As CorridorFeatureLine, _
alignmentId As ObjectId, _
layerId As ObjectId, _
styleId As ObjectId, _
labelSetId As ObjectId _
) As ObjectId |
Visual C++ |
---|
public:
static ObjectId CreateFromFeatureLine(
String^ profileName,
CorridorFeatureLine^ corridorFeatureLine,
ObjectId alignmentId,
ObjectId layerId,
ObjectId styleId,
ObjectId labelSetId
) |
Parameters
- profileName
- Type: System..::..String
The name for the new profile. Make sure this name is not used by another profile under the specified alignment.
- corridorFeatureLine
- Type: Autodesk.Civil.DatabaseServices..::..CorridorFeatureLine
The Corridor Feature Line to be used to create this profile.
- alignmentId
- Type: ObjectId
The ObjectId of Alignment for the new profile.
- layerId
- Type: ObjectId
The ObjectId of the Layer on which to place the new profile.
- styleId
- Type: ObjectId
The ObjectId of the Style to apply to the new profile.
- labelSetId
- Type: ObjectId
The ObjectId of the LabelSet to apply to the new profile.
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when:
- The ObjectId of the alignmentId, layerId, styleId,labelSetId is invalid.
- The Object corridorFeatureLine or The objectId of the siteId, layerId, styleId, labelSetId
is null.
- The profile name is null or empty.
|
See Also