Creates a profile of EG type from a surface.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public static ObjectId CreateFromSurface( string profileName, CivilDocument document, string alignmentName, string surfaceName, string layerName, string styleName, string labelSetName )
VB
Public Shared Function CreateFromSurface ( profileName As String, document As CivilDocument, alignmentName As String, surfaceName As String, layerName As String, styleName As String, labelSetName As String ) As ObjectId
C++
public: static ObjectId CreateFromSurface( String^ profileName, CivilDocument^ document, String^ alignmentName, String^ surfaceName, String^ layerName, String^ styleName, String^ labelSetName )
Parameters
- profileName String
- The name for the new profile. Make sure this name is not used by another profile under the specified alignment
- document CivilDocument
- The CivilDocument in which to place this new profile
- alignmentName String
- The name of the alignment for this new profile.
- surfaceName String
- The name of the surface on which to place this new profile.
- layerName String
- The name of the layer for this profile
- styleName String
- The name of the style for this profile
- labelSetName String
- The name of the label set for this profile
Return Value
ObjectIdExceptions
Exception | Condition |
---|---|
ArgumentException |
Thrown when:
|