PdcMaterial.NeededForOperation

From External Bemet Wiki
Revision as of 09:23, 22 May 2012 by Mike (talk | contribs) (Created page with "== Declaration == NeededForOperation as long == Description == Returns or changes the linenumber of the linked operation == Notes == This property sets or returns the linen...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

NeededForOperation as long

Description

Returns or changes the linenumber of the linked operation

Notes

This property sets or returns the linenumber of the operation for which the material is required.

Code example

This code example opens a calculation, loops through its materials and returns the operations' line number for each of them.

dim objCalc

  set objCalc = pdc.OpenCalculation("00685")
  for i = 0 to objCalc.MaterialList.Count -1
    set objMat = objCalc.MaterialList(i)
    msgbox "This material is required for operation: " & objMat.NeededForOperation
  next

Availability