Adds a baseline with the given baseline name, alignment and profile.

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

Syntax

C#
public Baseline Add(
	string baselineName,
	string alignmentName,
	string profileName
)
Visual Basic
Public Function Add ( _
	baselineName As String, _
	alignmentName As String, _
	profileName As String _
) As Baseline
Visual C++
public:
Baseline^ Add(
	String^ baselineName, 
	String^ alignmentName, 
	String^ profileName
)

Parameters

baselineName
Type: System..::..String
Name of the Baseline object to be created.
alignmentName
Type: System..::..String
Name of an existing Alignment object to be referenced by the new Baseline.
profileName
Type: System..::..String
Name of an existing Profile object which is referenced by the specified Alignment.

Return Value

The newly created Baseline instance.

Remarks

This method adds a new Baseline to the parent Corridor object specifying the name for the baseline and the referenced Alignment and Profile objects.

The specified name must be unique for the parent Corridor object. Although the name is case-sensitive, it is not recommended to use names that differ only by capitalization.

An Alignment with the specified name must exist in the drawing.

A Profile with the specified name must exist in the drawing and be referenced by the specified Alignment object.

Exceptions

ExceptionCondition
System..::..ArgumentException

This exception is thrown if the specified name for the Baseline object is null or empty after trimming the string.

The exception is thrown if the specified name for the Baseline already exists. The name comparison is case-sensitive; however, it is recommended to avoid names that differ only by capitalization.

The exception is thrown if an Alignment with the specified name does not exist, the string is null, or the string is empty after trimming.

The exception is thrown if a Profile with the specified name does not exist, it is not referenced by the specified Alignment, or the profile name specified is null or empty after trimming.

See Also