PdcMaterial.WriteOffPropPrecalc

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

WriteOffPropPrecalc as Boolean

Description

Returns the WriteOffPropPrecalc value. Setting the WriteOffPropPrecalc value can only be done if the material doesn’t have location management and if the calculation isn’t given into production yet.

Notes

Code example

This code example loops through the material list of the calculation and tries to set the WriteOffPropPrecalc to True

dim objCalc
set objCalc = pdc.OpenCalculation("00685")
for i = 0 to objCalc.MaterialList.Count -1
  set objMat = objCalc.MaterialList(i)
  objMat.WriteOffPropPrecalc = True
next

Availability

Available since May 2017 (from version 5.4)