BaselineCollectionAdd(String, String, String) Method

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

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public Baseline Add(
	string baselineName,
	string alignmentName,
	string profileName
)

Parameters

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

Return Value

Baseline
The newly created Baseline instance.
Exceptions
ExceptionCondition
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 not case-sensitive.

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.

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. The name is not case-sensitive.

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.

See Also