Enter Automation Command
- Choose Automation › Enter Automation Command.
- Type a word or two in Filter to shorten the list. Every word you type must be in the command's name, in any order, and can be part of a longer word: class move leaves the three commands that move a classification, and cop finds the two Copy commands and Set Substitution Scope.
- Choose the command from Command. From Spanner 2.5.1.2, what it does is shown under the boxes.
- Fill in Parameter 1 and Parameter 2. A box the command doesn't use is hidden. Hold the mouse over the ? beside a box to see what goes in it.
- Press Enter, or click the green tick, to run it. Escape or the red cross closes the window without running anything.
The command runs on the selected document, and on the selected planogram or object where it works on one. Spanner doesn't report what it did, so look at the result: the products in a report, the planogram, the Document Editor. A command that names something the document hasn't got does nothing.
Each command is one step under Edit › Undo. It is a good way to try a command before you put it in an automation: the name, the values and the result will be the same.
Common Custom Commands
With a document open, choose Automation › Common Custom Commands. The window holds the jobs people most often need on a document's products, each as a button. A button runs the automation command named in the tables below, on the selected document, and each is one undo step.
The window stays open until you close it with the red cross, so you can run several in turn. Where a button needs a classification, choose it from the list beside the button first.
Classifications
| Row | What it does | Command |
|---|---|---|
| Add Classification | Type the new heading and click Run. The box stays salmon pink, and Run stays hidden, until you have typed a name the document hasn't got. Rename Classification's box works the same way. | Add Classification |
| Delete Classification | Choose the classification and click Run. Its values go with it. | Delete Classification |
| Rename Classification | Choose it, type the new name after to, and click Run. | Rename Classification |
| Remove Empty Classifications | Deletes every classification that no product has a value in. | Remove Empty Classifications |
To move classifications, or to change several at once, use the Document Editor.
Copying codes
These copy each product's value from one field to another, for every product in the document: Copy UPC to ID, Copy ID to UPC, and rows that copy ID, UPC or Name to a classification you choose, a classification back to ID, UPC or Name, and one classification to another. They all run Copy Product Strings.
Use them to keep a retailer's code before you change it (copy ID to a Retailer ID classification), to make the barcode the product's key (copy UPC to ID), or to move coding from one heading to another.
Barcodes
| Button | What it does to each product's UPC | Command |
|---|---|---|
| Remove First Character from UPC | Takes off the first character, for files that put a letter or an extra digit in front. | Remove Characters, UPC, Start 1 |
| Add Check Digit to UPC | Works out the check digit and adds it to the end of every UPC. | Check Digit |
| Add Check Digit to UPC of 7/12 Digits | The same, but only for UPCs of 7 or 12 digits: the length an 8 or 13 digit barcode has when its check digit was left off. Usually the safer of the two. | Check Digit, UPC, 7 12 |
| 13 Digit UPC Format | Writes every UPC as 13 digits. | UPC Length, 13 |
| 8/13 Digit UPC Format | Keeps 8 digit barcodes at 8 and writes the rest as 13 digits. | UPC Length |
Look at a few UPCs before and after, in the Product Coding report. To mend a classification that holds barcodes, rather than the UPC itself, use the commands with that classification's name in Part 3.
Scaling
Scale Everything by multiplies every measurement in the document, products and fixtures alike, by the number in the box. Scale Up multiplies by it and Scale Down divides by it. The buttons show only while the box holds a number above 0. They run Scale Document.
The box starts at 2.54, the number of centimetres in an inch: a file whose sizes were read as centimetres when they were inches is put right with Scale Up. Check one product's size and one shelf's width afterwards.
PSA conversion
A retailer's planogram file arrives with the retailer's set-up, not yours. The grey psa Conversion block at the foot of the window brings it into line, one step per button:
| Button | What it adds |
|---|---|
| Add Default Classifications | Your default classifications that the document lacks. |
| Add/Copy to: Retailer ID | A Retailer ID classification holding each product's ID as the retailer gave it. Shown only while the document has no Retailer ID. |
| Add Default Measures | Your default measures. |
| Add Default Calculated Measures | Your default calculated measures, updating those with the same code. |
| Add Default Movement | Your default movement rows. |
| Set Default Time | Your two default time periods, in weeks; the button shows them, for example 52 12. |
| Do All | All of the above in turn. While the document has no Retailer ID, it also adds Retailer UPC with each product's UPC. |
Your defaults are in Tools › Settings. Opening a PSA with the command Open Document and Convert in Parameter 2 does the same as Do All as it opens the file.
To do this with every PSA, and to add barcode fixes and a library import, save the steps as an automation: the third example in Part 1 is one. What a PSA brings, and the work that follows, is in Using Retailers' Planograms.