Creates a profile of EG type from a surface.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public static ObjectId CreateFromSurface( string profileName, CivilDocument document, string alignmentName, string surfaceName, string layerName, string styleName, string labelSetName ) |
Visual Basic |
---|
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 |
Visual C++ |
---|
public: static ObjectId CreateFromSurface( String^ profileName, CivilDocument^ document, String^ alignmentName, String^ surfaceName, String^ layerName, String^ styleName, String^ labelSetName ) |
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
- document
- Type: Autodesk.Civil.ApplicationServices..::..CivilDocument
The CivilDocument in which to place this new profile
- alignmentName
- Type: System..::..String
The name of the alignment for this new profile.
- surfaceName
- Type: System..::..String
The name of the surface on which to place this new profile.
- layerName
- Type: System..::..String
The name of the layer for this profile
- styleName
- Type: System..::..String
The name of the style for this profile
- labelSetName
- Type: System..::..String
The name of the label set for this profile
Remarks
This method will use default values for offset, start station and end station.
default offset = 0, default start station and end station will bind with the parent alignment station.
Remarks
OBJECTID TYPE: Autodesk.Civil.DatabaseServices.Profile
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException |
Thrown when:
|