GetQty
The GetQty functionb is called once for each sash/frame when adding part components for hinges and locks etc. Returns how many ("main") parts should be added.
If the function is not present in the script then Quantity will be 1 or the user overridden quantity is if the option allows overriding.
(Additional parts other than the "main" part can be further added by the DefineParts procedure, which is called after GetQty)
Note! The Part and Element properties on aWrapper are not available at this point.
Example
function GetQty(aWrapper: TWorkWrapper):Integer;
begin
if aWrapper.SashHeight > 1204 then
Result := 3
else
Result := 2;
end;
Last updated
Was this helpful?