PdcCalculations.Copy: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == Copy(CalculationNo as String) as pdcCalculation == Description == Opens, returns and shows a calculation object == Notes == This method opens a calcul..." |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
== Description == | == Description == | ||
This method returns a new calculation object populated with the contents of the supplied calculation number. | |||
== Notes == | == Notes == | ||
This method | 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), call the 'UpdateChargesAll' command of the calculation object. | |||
You can also copy a subcalculation in the bill of materials (with its subcalculations, materials, operations and more). | |||
CalculationNo = | CalculationNo = The calculation number to copy from. | ||
== Code example == | == Code example == | ||
This code | This code takes copy of calculation 0801-000087 and shows the copy in PdC. | ||
<source lang="vb"> | <source lang="vb"> | ||
pdc.calculations. | dim objCalc | ||
set objCalc = pdc.calculations.Copy("0801-000087") | |||
objCalc.Show | |||
</source> | </source> | ||
== Availability == | == Availability == | ||
Available since April 2014 (version 4.3 onwards). | Available since April 2014 (version 4.3 onwards). |
Latest revision as of 08:44, 15 July 2014
Declaration
Copy(CalculationNo as String) as pdcCalculation
Description
This method returns a new calculation object populated with the contents of the supplied calculation number.
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), call the 'UpdateChargesAll' command of the calculation object. You can also copy a subcalculation in the bill of materials (with its 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).