Adds a material item with the sampled corridor shape to the material.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.3.1717.0
Syntax
C#
public QTOMaterialItem Add( ObjectId corridorId, string shapeCode )
Visual Basic
Public Function Add ( _ corridorId As ObjectId, _ shapeCode As String _ ) As QTOMaterialItem
Visual C++
public: QTOMaterialItem^ Add( ObjectId corridorId, String^ shapeCode )
Parameters
- corridorId
- Type: ObjectId
The ObjectId of the sampled corridor.
- shapeCode
- Type: System.String
A shape code of the sampled corridor.
Remarks
The sampled corridor should be Autodesk.Civil.DatabaseServices.Corridor.
Exceptions
Exception | Condition |
---|---|
[!:System.ArgumentException] | Thrown when the ObjectId doesn't specify a Corridor, shape code is invalid, or the specified corridor shape already exists in sub criteria. |
[!:System.InvalidOperationException] |
Thrown when:
|