OnCalcSashLeadWeight
This event occurs when calculating the weight for frame lead. Frame lead is used for products of type "Sash and Case" that are common in England.
It is the weight of one piece of lead to be calculated (Normally there are two frame lead per frame).
Example and syntax
function OnCalcSashLeadWeight(aSash:TCustomSashWrapper):double;
begin
Result := 0;
if aSash.VariantItem.S1 = 'UPPER' then
Result := (aSash.WeightExcludingFittings/2) + 0.8 //Upper
else
Result := (aSash.WeightExcludingFittings/2) - 0.8 //Lower
end;
Last updated
Was this helpful?