Share

Profile.CreateFromSurface(String, CivilDocument, String, String, String, String, String) Method

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

ObjectId

Exceptions

ExceptionCondition
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.

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.

See Also

Reference

Was this information helpful?