Parts and materials can have file links, such as drawings, certificates and DXF files. You add them in the File Attachment area of the Parts and Material windows. The File Links window lets you work on many file links at once. You export them to a text file, edit the file, and import it again.
Typical uses are:
- Updating file paths after drawings move to a new server or folder.
- Adding the same kind of link to many parts at once.
- Replacing all the file links on a set of parts with a new list.
Open the File Links window
- Select the Inventory tab on the OPTO ribbon.
- Click Utilities.
- Click File Links.
The window has two areas. Export creates a file from your parts and materials. Import reads an edited file back into OPTO.
Export file links
- Click Export.
- Choose Parts, Materials or Both.
- Both exports every part and every material without asking for a filter.
- For Parts or Materials, choose All Parts or All Materials, or choose Filtered to narrow the list.
- If you chose Filtered, pick a filter. Click More Options to see more filters.
- Parts can be filtered by Description, Client, Client Part, Part Group, Part Sub Group, the three part user defined fields, or a saved Query. The user defined field buttons show the names set up at your site.
- Materials can be filtered by Material Code, Description, Supplier, Supplier Code, Supplier Description, Material Group, Material Sub Group, or a saved Query.
- Choose where to save the file. The suggested name is
OPTO_File_Links.txtin your Documents folder.- If you run OPTO through a published app, save to a network drive that your own PC can reach.
- OPTO shows how many file links were exported and for how many items. Items with no file links are counted but are not written to the file.
The file layout
The file is tab delimited text. The first row holds the column headings, and each row after that is one file link. A part with three file links has three rows.
| Column | What it holds |
|---|---|
| Type | PARTS or MATERIAL |
| Code | The part or material code |
| Item Description | The part or material description. This is for reference only and is ignored when you import. |
| Link Description | The Description column of the file link |
| Rev | The revision. It is changed to upper case when you import. |
| Filename | The full path of the file |
| JT Print | Y or N. For parts this is the JT-Print column. For materials it is the P-email column. |
| Q Email | Y or N. The Q-Email column. |
| Lev (Parts only) | Y or N. The Lev column on parts. Ignored for materials. |
| Sub (Parts only) | Y or N. The Sub column on parts. Ignored for materials. |
| Doc ID (Parts only) | A Document Management ID. It must already exist. Ignored for materials. |
Some file paths start with %SPECIAL_PATH%. OPTO replaces this with a folder set up for
each workstation when the file is opened. Leave it in place unless you mean to change it.
Edit the file
- Edit the file in Notepad, or open it in Excel using the text import so that codes keep their leading zeros.
- Keep every column, in the same order, even if you leave some of them blank.
- Do not change the heading row.
- You can add rows, delete rows and change values.
- Save the file as tab delimited text (
.txt).
Choose an import option
Choose one option before you import.
Update links matched by Description
Each row is matched to the existing file link on the same item with the same Link Description. OPTO then updates the Rev, Filename, print settings and Doc ID of that link. Use this when you are changing file paths and the descriptions stay the same.
Update links matched by Filename
Each row is matched to the existing file link on the same item with the same Filename. OPTO then updates the Link Description, Rev, print settings and Doc ID of that link. Use this when you are renaming descriptions or changing print settings.
Replace all links on each item in the file
Every part or material that appears in the file ends up with exactly the file links in the file, in the order of the file. Any other links on that item are removed.
For example, a part has four file links and the file has one row for that part. After the import, the part has only that one link.
- Parts and materials that do not appear in the file are not changed.
- If any row for an item has a problem, nothing on that item is changed.
- You cannot use this option to remove every link from an item. Do that in the Parts or Material window.
Add unmatched rows as new links
This tickbox works with the two Update options. When it is ticked, a row that does not match an existing link is added as a new link on that item. When it is clear, those rows are skipped. It is not available with Replace all, which already adds every row.
Preview only
Tick Preview only to check a file before changing anything. OPTO runs every check and writes the results file, but does not change any part or material. Each row shows what would happen, such as "Would be WRITTEN" or "Would be REMOVED".
Matching ignores upper and lower case and any spaces at the start or end of a value.
Import the file
- In the Import area, click the browse button at the right of the file box and choose your edited file.
- Choose an import option, and tick the tickboxes you need.
- Click Import.
- If the column headings do not match the export layout, OPTO tells you which column is wrong and imports nothing. Export a new file and use it as your starting point.
- Read the confirmation message, which repeats the option you chose, and click Yes to continue.
- OPTO shows a summary of what changed and where the results file was saved. Click Yes to open the results file.
- If a part or material was open in another window during the import, close it and open it again to see the new file links.
Read the results file
The results file is saved in the same folder as the file you imported. Its name ends in
_RESULTS_ followed by the date and time. It has one row for each row of your file, and the
Message column explains what happened. The Rev column shows each link's revision as it was
saved, in upper case, so you can check a bulk revision change from the file.
| Status | Meaning |
|---|---|
| WRITTEN | An existing link was updated, or set by Replace all. |
| ADDED | A new link was added. |
| REMOVED | Replace all removed this link because it was not in the file. |
| UNCHANGED | The link already matched the file, so nothing changed. |
| PREVIEW | Preview only was ticked. The message says what would have happened. |
| SKIPPED | The row was not applied, for example because nothing matched or the item was open for editing by another user. |
| FAILED | The row has a problem that must be fixed before it can be imported. |
Common reasons for FAILED rows are:
- The code does not exist, or exists as the other type. For example, a material code on a
PARTSrow. - The Filename is blank.
- The Link Description is blank when matching by Description.
- A print column holds something other than
Y,Nor blank. - The Doc ID is not in Document Management.
- Two rows in the file update the same link, or one row matches more than one existing link.
Fix the rows in your file and import it again. Rows that were already applied will show as UNCHANGED.
Good to know
- Before an item is changed, OPTO keeps a copy of its previous record. Only the most recent copy for each item is kept. Contact Opto support if you need an import reversed.
- Run a Preview first when you use Replace all, so you can see which links will be removed.
