Creates a profile of FG type.

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

Syntax

C#
public static ObjectId CreateByLayout(
	string profileName,
	CivilDocument document,
	string alignmentName,
	string layerName,
	string styleName,
	string labelSetName
)
Visual Basic
Public Shared Function CreateByLayout ( _
	profileName As String, _
	document As CivilDocument, _
	alignmentName As String, _
	layerName As String, _
	styleName As String, _
	labelSetName As String _
) As ObjectId
Visual C++
public:
static ObjectId CreateByLayout(
	String^ profileName, 
	CivilDocument^ document, 
	String^ alignmentName, 
	String^ layerName, 
	String^ styleName, 
	String^ labelSetName
)

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

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. alignmentName, layerName, styleName or labelSetName is invalid or cannot be found.

See Also