Creates a new, empty Corridor.

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

Syntax

C#
public ObjectId Add(
	string corridorName
)
Visual Basic
Public Function Add ( _
	corridorName As String _
) As ObjectId
Visual C++
public:
ObjectId Add(
	String^ corridorName
)

Parameters

corridorName
Type: System..::..String
Name of the corridor to be created.

Remarks

This method creates a new, empty Corridor with the specified name. The Corridor object will not contain a Baseline or BaselineRegion. The method does not allow duplicate names; however, Corridor names are case-sensitive, so it is possible to add a Corridor "corridor - 1" when a "Corridor - 1" already exists. Adding Corridor objects with names that differ only by case is not recommended.

Exceptions

ExceptionCondition
System..::..ArgumentException

This exception is thrown if the Corridor name is empty or becomes empty after it is trimmed (removing all leading and trailing blank spaces).

It will also be thrown if the specified name already exists in the drawing. Corridor names are case-sensitive; therefore, "Corridor - 1" will not match "corridor - 1". This practice is not recommended.

System..::..ArgumentNullException This exception is thrown if the specified name string is null.

See Also