PdcCalculation.MaterialList

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

MaterialList as PdcMaterialList

Description

Returns the MaterialList object

Notes

This property returns the 'MaterialList' object of the current calculation. It can be used to browse through all the materials of a calculation.

Code example

This code example loops through the materiallist of the active calculation and shows the quantity of this material.

dim objCalc
dim i

  set objCalc = pdc.ActiveCalculation
  For i = 0 to objCalc.MaterialList.Count - 1
     msgbox objCalc.MaterialList.Number
  Next

Availability