Working with Plant Variables
There are two kinds of plant variables:
• Cost model variables: provide data that is global to a given cost model in a given VPE
• VPE variables: provide data that is global to a given VPE
CSL code can access plant variables through fields of the CSL standard input plant. Here is an example:
requiredShotSize = plant.shotSizeSafetyFactor * _
(part.volume * numCavities * plant.densityPolystyreneForShotSize)/1000000
See
CSL Language Overview for more information on CSL.
The CSL field names, such as
shotSizeSafetyFactor and
densityPolystyreneForShotSize, are specified in the
Variable Name field of the Cost Model Variables table (see
Viewing and Modifying Cost Model Variables).
This section describes the following tasks: