PdcMaterial.Leadtime: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == LeadTime as Integer == Description == Returns or changes the leadtime == Notes == This property sets or returns the leadtime of a material. == Code exampl..."
 
No edit summary
 
Line 21: Line 21:


== Availability ==
== Availability ==
Available since May 2023. Version 2023R3
Available since May 2023. Version 2022R2 build 4

Latest revision as of 09:58, 20 April 2023

Declaration

LeadTime as Integer

Description

Returns or changes the leadtime

Notes

This property sets or returns the leadtime of a material.

Code example

This code example opens a calculation, loops through its materials and increases the leadtime of each material

calc = PDC.App.OpenCalculation(tbCalcNr.Text)
matList = calc.MaterialList
For index As Integer = 0 To matList.Count - 1
  mat = matList.Items(0)
  mat.LeadTime = mat.LeadTime + 1
Next

Availability

Available since May 2023. Version 2022R2 build 4