PdcCalculation.ActiveMaterial: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == == Description == == Notes == == Code example == <source lang="vb"> </source> == Availability ==" |
No edit summary |
||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
ActiveMaterial as [[PdcMaterial]] | |||
== Description == | == Description == | ||
Returns the activematerial object | |||
== Notes == | == Notes == | ||
This property returns the active material object. | |||
== Code example == | == 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. | |||
<source lang="vb"> | <source lang="vb"> | ||
dim objCalc | |||
dim objMat | |||
set objCalc = pdc.ActiveCalculation | |||
set objMat = objCalc.ActiveMaterial | |||
objMat.Number = 4 | |||
objCalc.Save | |||
objCalc.Refresh | |||
</source> | </source> | ||
== Availability == | == Availability == |
Latest revision as of 08:51, 21 May 2012
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