Share

BaselineCollection.Add(String, ObjectId) Method

Adds a baseline with the given baseline name, feature line.



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

Syntax

C#

public Baseline Add(
	string baselineName,
	ObjectId featureLineId
)

VB

Public Function Add ( 
	baselineName As String,
	featureLineId As ObjectId
) As Baseline

C++

public:
Baseline^ Add(
	String^ baselineName, 
	ObjectId featureLineId
)

Parameters

baselineName  String
Name of the Baseline object to be created.
featureLineId  ObjectId
Object id of the FeatureLine object.

Return Value

Baseline
The newly created Baseline instance.

Exceptions

ExceptionCondition
ArgumentException Throw exception if:
  1. The specified name for the Baseline is empty after it's trimed or it already exists. The name comparison is not case-sensitive.
  2. The feature line does not point to an instance of the FeatureLine class.
  3. The feature line does not exist in the same drawing of the corridor.

See Also

Reference

Was this information helpful?