PdcCalculations.Copy
Declaration
Copy(CalculationNo as String) as pdcCalculation
Description
Copy the calculation of the applied number and returns the copied calculation object
Notes
This method copies a calculation. The copy is identical to the manual copy in PdC with all the copy options checked and all the update options unchecked. To update the calculation (for example the prices), you have to call the 'UpdateAll' command of the calculation object. You can copy also a subcalculation in the bill of materials (with his subcalculations, materials, operations and more).
CalculationNo = The calculation number to copy from.
Code example
This code takes copy of calculation 0801-000087 and shows the copy in PdC.
dim objCalc
set objCalc = pdc.calculations.Copy("0801-000087")
objCalc.Show
Availability
Available since April 2014 (version 4.3 onwards).