PdcMaterial.SawCosts

From External Bemet Wiki
Revision as of 08:26, 28 February 2025 by TC (talk | contribs) (Created page with "== Declaration == SawCosts as double == Description == Returns or changes the saw costs == Notes == This property sets or returns the sawcosts of the material. It can not be found in the calculation form, it's a result of saw costs. In the database this is field DM_MATLINES.DM_SAWCOSTS. == Code example == This code example opens a calculation, loops through its materials, and shows the saw costs for each material in a message box. <source lang="vb"> dim objCalc s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

SawCosts as double

Description

Returns or changes the saw costs

Notes

This property sets or returns the sawcosts of the material. It can not be found in the calculation form, it's a result of saw costs. In the database this is field DM_MATLINES.DM_SAWCOSTS.

Code example

This code example opens a calculation, loops through its materials, and shows the saw costs for each material in a message box.

dim objCalc

  set objCalc = pdc.OpenCalculation("00685")
  for i = 0 to objCalc.MaterialList.Count -1
    set objMat = objCalc.MaterialList(i)
    msgbox "The saw costs are " & objMat.SawCosts
  next

Availability

Available since February 2025 (from version 2025.1)