Pack Rules …
No rules yet — items in the model render per-cut. Add a rule below to roll cuts up into packs.

Each rule maps one Itemcode to a purchase pack (roll, box, length, etc.). On preview / PDF, every cut of that itemcode collapses to one row showing the pack count and pack price.

Open a model and hit Refresh on the Build tab to populate this list.

Click any chip to start a new rule with the itemcode pre-filled. Only itemcodes that don't already have a rule are shown.

Rule details

Must match the dyc:itemcode attribute on the component (case-insensitive). Use ?? as a wildcard for colour-resolved variants — e.g. SMHC8??0251E matches every colour (SUR, MNT, …). Each colour rolls into its own box; the captured colour is available for ?? substitution in the overrides below. Or wrap in slashes for a full regex: /SMHC8\w+0251E/.

For divisible: length / count per pack (50 m roll, 250 screws/box). For stock-length: length per stick (6.1 m).

Cost per one pack from the supplier. Used to compute the row Cost.

Replaces the Unit column on the summary row.

What the DC's Measure column is in. Not used by the math, just for your reference.

Extra packs added to the final ordered count as a cushion against cutting errors. Applied once per rule, not per instance — e.g. 20 lengths needed + buffer of 1 = order 21. Only applies when the item is actually used in the model.

Replaces the row's Name on output. Supports ?? substitution when the rule's Itemcode is a wildcard (the captured colour gets dropped in). Leave blank to keep the model's Name.

Replaces the row's Itemcode on the rolled-up summary line. Use this when the supplier has a separate SKU for the pack (e.g. S5WC8120322E500 for a box of 500) but you model individual units (e.g. S5WC8120322E per screw). When the rule's Itemcode contains ??, the captured colour is substituted here too — e.g. override SMHC8??0251E500 becomes SMHC8SUR0251E500 for the SURFMIST roll-up. Leave blank to keep the per-each itemcode.

When set to a row attribute (typically Name or Usage), cuts that share the resolved Itemcode but differ on this attribute are packed independently and emit one summary line per distinct value. Use this when one supplier SKU serves multiple purposes in the model — e.g. CF055G03X?? used for both Vermin Flashing and Awning Beam Flashing share the Stramit code but you bundle / deliver / quote them as separate items. Leave blank to keep the legacy single-bucket-per-Itemcode behaviour. Incompatible with Name override: the override is skipped when this field is set so each bucket keeps its own Name.

Translates the palette's colour code (MON, SUR, …) into the supplier's SKU code (MO, SF, …) when substituting ?? in the overrides above. One mapping per line, format INTERNAL=SUPPLIER. Leave blank when the palette code is already what the supplier expects.