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, double offset, double sampleStart, double sampleEnd )
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, offset As Double, sampleStart As Double, sampleEnd As Double ) As ObjectId
C++
public: static ObjectId CreateFromSurface( String^ profileName, CivilDocument^ document, String^ alignmentName, String^ surfaceName, String^ layerName, String^ styleName, String^ labelSetName, double offset, double sampleStart, double sampleEnd )
Parameters
- profileName String
- Name for the new profile, make sure this name is not used by another profile under the specified alignment
- document CivilDocument
- CivilDocument to place this new profile
- alignmentName String
- Name of the alignment to place this new profile.
- surfaceName String
- Name of the surface to place this new profile.
- layerName String
- Name of the layer for this profile
- styleName String
- Name of the style for this profile
- labelSetName String
- Name of the label set for this profile
- offset Double
- Sets the offset value to create this Profile.
- sampleStart Double
- Sets the start sample station for this Profile, it should be within Alignment station range
- sampleEnd Double
- Sets the end sample station for this Profile, it should be within Alignment station range
Return Value
ObjectIdExceptions
Exception | Condition |
---|---|
ArgumentException |
Thrown when:
|