Share

QTOSubcriteria.Add Method

Adds a material item with the sampled surface to the sub criteria.



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

Syntax

C#

public QTOMaterialItem Add(
	ObjectId surfaceId
)

VB

Public Function Add ( 
	surfaceId As ObjectId
) As QTOMaterialItem

C++

public:
QTOMaterialItem^ Add(
	ObjectId surfaceId
)

Parameters

surfaceId  ObjectId
The ObjectId of the sampled surface added as material item.

Return Value

QTOMaterialItem

Exceptions

ExceptionCondition
[!: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.

Remarks

The sampled surface should be Autodesk.Civil.DatabaseServices.TinSurface or Autodesk.Civil.DatabaseServices.GridSurface.

See Also

Reference

Was this information helpful?