PdcMaterial.SawCosts

From External Bemet Wiki
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)