As you can see, the template includes a section at the end with all the estimated times returned from the Smidyo API. You can remove or hide this section from your customer, or choose to display certain sections to give your customer a clear breakdown of how the price is calculated.
You can also calibrate these times to match your machine. In the template, working backward from the total price, we can see how the price is calculated.
The Total Price can be seen in the formula in the "Total" formula element. It is UNITP multiplied by the Quantity (QTY) (which comes from the "Quantity" input element)
Part Unit Price (UNITP) is the price of one part. It is the Part Material Price (MATPRICE), added to the Part Cutting Price (CUTPRICE), Part Scoring Price (SCOPRICE), and Part Engraving Price (ENGPRICE). It is then discounted by Quantity Discount (QTYDIS).
Quantity Discount (QTYDIS) is a simple formula based on Quantity (QTY), which returns a discount percentage based upon the quantity the customer has set.
Part Cutting Price (CUTPRICE) & Part Scoring Price (SCOPRICE) is the Part Cutting Seconds (CUTSEC) and Part Scoring Seconds (SCOSEC) respectively, multiplied by your Machine's Hourly Rate (HRATE).
Part Engraving Price (ENGPRICE) is the Part Engraving Time (ENGSEC) multiplied by your hourly rate.
Part Cutting Seconds (CUTSEC) & Part Scoring Seconds (SCOSEC) represent how much time your machine spends on cutting and scoring. These formulas take into account two values returned by the Smidyo API: cuttingTime / scoringTime and cuttingRapids / scoringRapids.
cuttingTime & scoringTime represents how many seconds your machine actually spends cutting and scoring.
cuttingRapids & scoringRapids represents how many times the laser needs to move cut-to-cut. You can see that in the formula, we apply an average of 0.2 seconds per move.
You can calibrate these times by adjusting two things.
On the Connect API action of the "Estimate price" button, you can adjust the vectorJerkFactor parameter. This value sets how fast the machine accelerates around tight turns. For a fast-accelerating, nimble machine, you can put a higher value. For a slower-accelerating, bulky machine, you can lower the value.
You can adjust the number of seconds added for every rapid movement (cuttingRapids / scoringRapids) in the CUTSEC and SCOSEC variables.
The material cutting speed. You should ideally put the exact speed that you use to cut the material in real life, then adjust the previous two factors to match it as closely as possible.
Part Engraving Seconds (ENGSEC) represents how much time your machine spends raster engraving. This comes from the engravingTime values returned by the Smidyo API. You can calibrate this time by adjusting these parameters in the Connect API action on the "Estimate price" button.
You can adjust the machine's acceleration with the rasterAcceleration parameter. For a quick machine like a Trotec, this can be set higher. For a slower cutting-focused machine, this can be set lower.
You can also adjust how the machine behaves between every scanline with the rasterTurnDelay and rasterOvershoot parameters. rasterTurnDelay sets the time (in seconds) your machine pauses when engraving one scanline to the next. rasterOvershoot sets how far (in millimeters) the machine moves past the furthest extremity of the raster engraving.
The engraving speed and engraving DPI. You should ideally put the exact speed and DPI that you use to cut the material in real life, then adjust the previous two factors to match it as closely as possible.