PdcCalculation.ActiveMaterial
Declaration
ActiveMaterial as PdcMaterial
Description
Returns the activematerial object
Notes
This property returns the active material object.
Code example
This code example returns the material selected in the calculation form and changes the required quantity then saves and refreshes the calculation on screen.
dim objCalc
dim objMat
set objCalc = pdc.ActiveCalculation
set objMat = objCalc.ActiveMaterial
objMat.Number = 4
objCalc.Save
objCalc.Refresh