PdcMaterial.WriteOffPropRes: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == WriteOffPropRes as Boolean == Description == Returns the WriteOffPropRes value. Setting the WriteOffPropRes value can only be done if the material doesn’t..."
 
No edit summary
 
Line 10: Line 10:
This code example loops through the material list of the calculation and tries to set the WriteOffPropRes to True
This code example loops through the material list of the calculation and tries to set the WriteOffPropRes to True


source lang="vb"
<source lang="vb">
dim objCalc
dim objCalc
set objCalc = pdc.OpenCalculation("00685")
set objCalc = pdc.OpenCalculation("00685")
Line 17: Line 17:
   objMat.WriteOffPropRes = True
   objMat.WriteOffPropRes = True
next  
next  
/source
</source>
   
   
== Availability ==
== Availability ==
Available since May 2017 (from version 5.4)
Available since May 2017 (from version 5.4)

Latest revision as of 14:10, 25 April 2017

Declaration

WriteOffPropRes as Boolean

Description

Returns the WriteOffPropRes value. Setting the WriteOffPropRes 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 WriteOffPropRes to True

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

Availability

Available since May 2017 (from version 5.4)