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

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

Syntax

C#
public Baseline AddGUIDBaseline(
	string baselineName,
	ObjectId alignmentId,
	ObjectId profileId
)
Visual Basic
Public Function AddGUIDBaseline ( _
	baselineName As String, _
	alignmentId As ObjectId, _
	profileId As ObjectId _
) As Baseline
Visual C++
public:
Baseline^ AddGUIDBaseline(
	String^ baselineName, 
	ObjectId alignmentId, 
	ObjectId profileId
)

Parameters

baselineName
Type: System..::..String
Name of the Baseline object to be created.
alignmentId
Type: ObjectId
ObjectId pointing to an Alignment object to be referenced by the new Baseline.
profileId
Type: ObjectId
ObjectId pointing to aProfile 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 and GUID 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.

The Alignment must exist in the same drawing.

The Profile must exist in the same 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 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.

See Also