ProfileCreateFromFeatureLine Method

Creates a profile of EG type from a corridor feature line.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId CreateFromFeatureLine(
	string profileName,
	CorridorFeatureLine corridorFeatureLine,
	ObjectId alignmentId,
	ObjectId layerId,
	ObjectId styleId,
	ObjectId labelSetId
)

Parameters

profileName  String
The name for the new profile. Make sure this name is not used by another profile under the specified alignment.
corridorFeatureLine  CorridorFeatureLine
The Corridor Feature Line to be used to create this profile.
alignmentId  ObjectId
The ObjectId of Alignment for the new profile.
layerId  ObjectId
The ObjectId of the Layer on which to place the new profile.
styleId  ObjectId
The ObjectId of the Style to apply to the new profile.
labelSetId  ObjectId
The ObjectId of the LabelSet to apply to the new profile.

Return Value

ObjectId
Exceptions
ExceptionCondition
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