Creates a profile of EG type from a surface.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

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
)
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, _
	offset As Double, _
	sampleStart As Double, _
	sampleEnd As Double _
) As ObjectId
Visual 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
Type: System..::..String
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
CivilDocument to place this new profile
alignmentName
Type: System..::..String
Name of the alignment to place this new profile.
surfaceName
Type: System..::..String
Name of the surface to place this new profile.
layerName
Type: System..::..String
Name of the layer for this profile
styleName
Type: System..::..String
Name of the style for this profile
labelSetName
Type: System..::..String
Name of the label set for this profile
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

ExceptionCondition
System..::..ArgumentException Thrown when:
  1. profileName is either null, blank, or existed under the specified alignment.
  2. alignmentId, surfaceId, layerId, styleId, or labelsetId is invalid.
  3. offset value too large or too small. sampleStart or sampleEnd are not within Alignment station range.

See Also