Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public ObjectId Add( string corridorName, string baselineName, ObjectId alignmentId, ObjectId profileId ) |
Visual Basic |
---|
Public Function Add ( _ corridorName As String, _ baselineName As String, _ alignmentId As ObjectId, _ profileId As ObjectId _ ) As ObjectId |
Visual C++ |
---|
public: ObjectId Add( String^ corridorName, String^ baselineName, ObjectId alignmentId, ObjectId profileId ) |
Parameters
- corridorName
- Type: System..::..String
Name of the Corridor to be created.Name of the Corridor to be created.
- baselineName
- Type: System..::..String
Name of the Baseline to be created.Name of the Baseline to be created.
- alignmentId
- Type: ObjectId
ObjectId of the Alignment used to create the Baseline.ObjectId of the Alignment used to create the Baseline.
- profileId
- Type: ObjectId
ObjectId of the Profile used to create the Baseline.ObjectId of the Profile used to create the Baseline.
Remarks
This method creates a new Corridor object. The Corridor has the specified name, and a new Baseline is created referencing the specified alignmentId and profileId. The new Baseline has the specified baselineName.
Remarks
This method creates a new Corridor object. The Corridor has the specified name, and a new Baseline is created referencing the specified alignmentId and profileId. The new Baseline has the specified baselineName.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | This exception is thrown if corridorName is empty or becomes empty after it is trimmed (removing all leading and trailing blank spaces) or a Corridor with the same name already exists. The Corridor name is case-sensitive; therefore, "Corridor - 1" will not match "corridor - 1". This practice is not recommended. This exception is also thrown if the baselineName is empty or becomes empty it is trimmed (removing all leading and trailing blank spaces). This exception is also thrown if the specified alignmentId does not reference an Alignment object, the Alignment instance belongs to a different drawing, or it is ObjectId.Null. This exception will also be thrown if the specified profileId does not reference a Profile object, the Profile object instance is not owned by the specified Alignment, or the Profile object belongs to a different drawing. |
System..::..ArgumentNullException | This exception is thrown if the corridorName or the baselineName specified are null. |
System..::..ArgumentException | This exception is thrown if corridorName is empty or becomes empty after it is trimmed (removing all leading and trailing blank spaces) or a Corridor with the same name already exists. The Corridor name is case-sensitive; therefore, "Corridor - 1" will not match "corridor - 1". This practice is not recommended. This exception is also thrown if the baselineName is empty or becomes empty it is trimmed (removing all leading and trailing blank spaces). This exception is also thrown if the specified alignmentId does not reference an Alignment object, the Alignment instance belongs to a different drawing, or it is ObjectId.Null. This exception will also be thrown if the specified profileId does not reference a Profile object, the Profile object instance is not owned by the specified Alignment, or the Profile object belongs to a different drawing. |
System..::..ArgumentNullException | This exception is thrown if the corridorName or the baselineName specified are null. |