Adds a material item with the sampled surface to the sub criteria.
public QTOMaterialItem Add( ObjectId surfaceId )
Public Function Add ( surfaceId As ObjectId ) As QTOMaterialItem
public: QTOMaterialItem^ Add( ObjectId surfaceId )
| 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 Material volume calculation method is CompositeVolume and count of surface material item is two. |