PdcMaterial.ManualAllocation
Jump to navigation
Jump to search
Declaration
ManualAllocation as Boolean
Description
Returns the ManualAllocationvalue. Set ManualAllocation is now changed: Value can only be changed to True and if the material has location management. If the value is to be set to false while it’s currently true, the value will remain true.
Notes
Code example
This code example loops through the material list of the calculation and tries to set ManualAllocation to True.
dim objCalc
set objCalc = pdc.OpenCalculation("00685")
for i = 0 to objCalc.MaterialList.Count -1
set objMat = objCalc.MaterialList(i)
objMat.ManualAllocation = True
next
Availability
Available since May 2017 (from version 5.4)