PdcCalculation.ActiveMaterial

From External Bemet Wiki
Revision as of 08:51, 21 May 2012 by Mike (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Availability