Adds a material item with the sampled surface to the material.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.208.0
Syntax
C#
public QTOMaterialItem Add( ObjectId surfaceId )
Visual Basic
Public Function Add ( _ surfaceId As ObjectId _ ) As QTOMaterialItem
Visual C++
public: QTOMaterialItem^ Add( ObjectId surfaceId )
Parameters
- surfaceId
- Type: ObjectId
The ObjectId of the sampled surface added as material item.
Remarks
- The sampled surface should be Autodesk.Civil.DatabaseServices.TinSurface or Autodesk.Civil.DatabaseServices.GridSurface.
- A new material item is added to the first sub criteria if it exists.
Exceptions
Exception | Condition |
---|---|
[!:System.ArgumentException] | Thrown when the ObjectId doesn't specify a TinSurface and GridSurface, or the specified surface already exists in sub criteria. |
[!:System.InvalidOperationException] |
Thrown when:
|