PdcMaterial.BUnits

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

BUnits as pdcUnitKind

Description

Returns the real units

Notes

This property returns (i.e. READ ONLY) the actual number of units for a material and is obviously only of interest once production has been reported.

Code example

This code example opens a calculation, loops through its materials, and shows the actual number of units for each one in a message box.

dim objCalc

  set objCalc = pdc.OpenCalculation("00685")
  for i = 0 to objCalc.MaterialList.Count -1
    set objMat = objCalc.MaterialList(i)
    msgbox "The area factor is" & objMat.BUnits
  next

Availability