PdcMaterial.ServiceCosts

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

ServiceCosts as double

Description

Returns or changes the service costs

Notes

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

Code example

This code example opens a calculation, loops through its materials, and shows the service 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 service costs are " & objMat.ServiceCosts
  next

Availability

Available since February 2025 (from version 2025.1)