Share

QTOMaterial.Add(ObjectId, String) Method

Adds a material item with the sampled corridor shape to the material.



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

Syntax

C#

public QTOMaterialItem Add(
	ObjectId corridorId,
	string shapeCode
)

VB

Public Function Add ( 
	corridorId As ObjectId,
	shapeCode As String
) As QTOMaterialItem

C++

public:
QTOMaterialItem^ Add(
	ObjectId corridorId, 
	String^ shapeCode
)

Parameters

corridorId  ObjectId
The ObjectId of the sampled corridor.
shapeCode  String
A shape code of the sampled corridor.

Return Value

QTOMaterialItem

Exceptions

ExceptionCondition
[!: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:
  1. Quantity type is not Structure.
  2. Surface material item already exists.
  3. Material volume calculation method is CompositeVolume.

Remarks

The sampled corridor should be Autodesk.Civil.DatabaseServices.Corridor.

See Also

Reference

Was this information helpful?