BaselineCollectionAdd(String, ObjectId, ObjectId) 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,
	ObjectId alignmentId,
	ObjectId profileId
)

Parameters

baselineName  String
Name of the Baseline object to be created.
alignmentId  ObjectId
ObjectId pointing to an Alignment object to be referenced by the new Baseline.
profileId  ObjectId
ObjectId pointing to aProfile 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 the alignmentId does not point to an instance of the Alignment class, the Alignment does not exist in the same drawing, or the ObjectId is Null.

The exception is thrown if the profileId does not point to an instance of the Profile class, the Profile is not referenced by the specified Alignment, or the ObjectId is Null.

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.

The Alignment must exist in the same drawing.

The Profile must exist in the same drawing and be referenced by the specified Alignment object.

See Also