PdcCalculation.ExpandLevels: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 11: Line 11:


== Code example ==
== Code example ==
This code Makes it possible to expand the levels of the whole bill of material.
This code makes it possible to expand the levels of the whole bill of material.


<source lang="vb">
<source lang="vb">

Latest revision as of 08:26, 21 May 2012

Declaration

ExpandLevels

Description

Changes the production methode of a manufacture article to order commitment

Notes

This method expands all materials in the calculation for stocked F-parts and changes them to be made-to-order for this calculation.

BEWARE; this method also executes a SaveAsArticle command!

Code example

This code makes it possible to expand the levels of the whole bill of material.

Sub sExpandLevelsOfCalc(robjCalc)
dim intTel

  if (robjCalc.MaterialList.Count  robjCalc.Children.Count) > 0 then
    robjCalc.ExpandLevels
  end if

  for intTel = 0 to robjCalc.Children.Count  1
    sExpandLevelsOfCalc robjCalc.Children(intTel)
  next
End Sub

Availability

Available since July 2004.