PdcCalculation.MaterialList: 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 == | ||
MaterialList as [[PdcMaterialList]] | |||
== Description == | == Description == | ||
Returns the MaterialList object | |||
== Notes == | == Notes == | ||
This property returns the 'MaterialList' object of the current calculation. It can be used to browse through all the materials of a calculation. | |||
== Code example == | == Code example == | ||
This code example loops through the materiallist of the active calculation and shows the quantity of this material. | |||
<source lang="vb"> | <source lang="vb"> | ||
dim objCalc | |||
dim i | |||
set objCalc = pdc.ActiveCalculation | |||
For i = 0 to objCalc.MaterialList.Count - 1 | |||
msgbox objCalc.MaterialList.Number | |||
Next | |||
</source> | </source> | ||
== Availability == | == Availability == |
Latest revision as of 09:34, 21 May 2012
Declaration
MaterialList as PdcMaterialList
Description
Returns the MaterialList object
Notes
This property returns the 'MaterialList' object of the current calculation. It can be used to browse through all the materials of a calculation.
Code example
This code example loops through the materiallist of the active calculation and shows the quantity of this material.
dim objCalc
dim i
set objCalc = pdc.ActiveCalculation
For i = 0 to objCalc.MaterialList.Count - 1
msgbox objCalc.MaterialList.Number
Next