Creates a profile of EG type from a surface.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.3.1717.0
Syntax
C#
public static ObjectId CreateFromSurface( string profileName, ObjectId alignmentId, ObjectId surfaceId, ObjectId layerId, ObjectId styleId, ObjectId labelSetId, double offset, double sampleStart, double sampleEnd )
Visual Basic
Public Shared Function CreateFromSurface ( _ profileName As String, _ alignmentId As ObjectId, _ surfaceId As ObjectId, _ layerId As ObjectId, _ styleId As ObjectId, _ labelSetId As ObjectId, _ offset As Double, _ sampleStart As Double, _ sampleEnd As Double _ ) As ObjectId
Visual C++
public: static ObjectId CreateFromSurface( String^ profileName, ObjectId alignmentId, ObjectId surfaceId, ObjectId layerId, ObjectId styleId, ObjectId labelSetId, double offset, double sampleStart, double sampleEnd )
Parameters
- profileName
- Type: System.String
Name for the new profile, make sure this name is not used by another profile under the specified alignment
- alignmentId
- Type: ObjectId
Alignment id to place the new profile, OBJECTID TYPE: Autodesk.Civil.DatabaseServices.Alignment
- surfaceId
- Type: ObjectId
Surface id to place the new profile, OBJECTID TYPE: Autodesk.Civil.DatabaseServices.Surface
- layerId
- Type: ObjectId
Layer id to place the new profile, OBJECTID TYPE: Autodesk.AutoCAD.DatabaseServices.LayerTableRecord
- styleId
- Type: ObjectId
Style id to apply to the new profile, OBJECTID TYPE: Autodesk.Civil.DatabaseServices.Styles.AlignmentStyle
- labelSetId
- Type: ObjectId
LabelSet id to apply to the new profile, OBJECTID TYPE: Autodesk.Civil.DatabaseServices.Styles.AlignmentLabelSetStyle
- offset
- Type: System.Double
Sets the offset value to create this Profile.
- sampleStart
- Type: System.Double
Sets the start sample station for this Profile, it should be within Alignment station range
- sampleEnd
- Type: System.Double
Sets the end sample station for this Profile, it should be within Alignment station range
Remarks
OBJECTID TYPE: Autodesk.Civil.DatabaseServices.Profile
Exceptions
Exception | Condition |
---|---|
System.ArgumentException |
Thrown when:
|