Library Remediation in Trace Plugin checks every part in an Altium library: links to symbols and footprints that lead nowhere, footprints that break your rules, pads out of line with their row, and missing manufacturer details. It can then fix what it finds into a copy of the library. Your original library is only ever read.
Before you start
- Install and sign in to Trace Plugin. Library Remediation works on Windows, Mac and Linux, and does not need a design tool connected.
- Open it from the home screen: Components > Library Remediation > Open. It opens in its own window.
- Keep a backup of the library, and get permission from its owner before sending any of it to Trace for an AI review.
- For a library kept in a database or behind a web API, get a read-only account and the connection details from its owner.
Library Remediation reads Altium library formats: schematic, PCB, integrated and database libraries (.SchLib, .PcbLib, .IntLib, .DbLib and .SVNDbLib), with database rows from Excel or CSV files in the same folder.
Check a library folder
- Under Where the library is, choose A folder, then Choose folder. Every library in the folder and its subfolders is read.
- Choose the Compliance ruleset. The default is IPC-7351B. To use your own policy, choose Copy and edit, or Import a customer's ruleset file. Lengths in the ruleset editor are in mils.
- Press Audit and wait while Trace reads the libraries, links symbols and footprints, and checks every part.
- Read any warnings about files Trace could not read before you trust the totals.
Audits keep running when you close the Library Remediation window. Press Stop to stop one; an audit that was stopped part way needs another Audit to cover the whole library.
A DbLib that points to a database server, or to files outside the folder, is listed as a dependency; Trace does not follow it. Altium's History and preview folders are skipped.
Check a database or web library
- Under Where the library is, choose A database or web API.
- Pick a source you saved before, or New source. Choose its Kind: SQL Server, PostgreSQL, MySQL / MariaDB or Web API, and fill in the settings from the library's owner. To save typing, use Paste instead with a connection string, address or curl command, then Fill in, or From a DbLib…. Nothing pasted is run: it only fills in the form for you to check.
- Press Test connection, then pick the tables you need.
- Keep Also copy the library files its rows name ticked if the rows point to library files, and choose their folder.
- Press Copy and audit.
Trace copies the rows and files into its own folder and checks the copy. It never writes to the database. For a web API, check with its owner that the request you set up only reads data. Saved passwords and headers are encrypted on your computer.
Read the results
Each part gets one of these verdicts:
| Verdict | Meaning |
|---|---|
| Unresolved | Its symbol, footprint or part number is not sorted out. |
| Noncompliant | At least one error under your ruleset. |
| Missing information | A required field, such as the manufacturer part number, is missing. |
| Needs review | Warnings only. |
| Compliant | Nothing found, or notes only. |
Use the verdict filters, Every check and Find a part to narrow the list, and Pictures to see each part's symbol and footprint. Compliant means the checks found nothing; still compare a part with its datasheet before you rely on it.
Ask for an AI review
An AI review checks each part's manufacturer part number against datasheets and distributors, and marks parts whose number is wrong, is a distributor's number, fits more than one part, cannot be found or is obsolete.
- Finish the audit first.
- Under AI review, pick a Model. It starts on GPT Astra; GPT Sol, Trace Genie 2.0 Flash and Trace Genie 2.0 are also available.
- Choose Parts with something to look at or Every part.
- Press Start AI review, check the summary, then Start.
The audit's findings and the parts' details, symbol and footprint drawings are sent to Trace's servers for the review. It uses your Trace plan's allowance or credits, like chat; a larger library or a more capable model uses more. If your credit runs out, the review pauses until you press Continue. Closing the window does not stop a review: reopen the audit to follow it, or press Stop.
Each finding says where it came from, such as a datasheet page or a distributor. AI can be wrong, so check before you fix.
Write fixes to a copy
- In a finished audit's Fix section, go through the proposed fixes. Simple ones start ticked; nothing is written until you go on.
- Press Fix N into a folder… and choose a new, empty folder.
- Read the change log (Open the change log) and What to do in Altium for the findings Trace cannot fix itself.
- Open the fixed libraries in Altium, check them, and run an audit on the copy before you adopt it.
Trace fixes things such as tight courtyards, silkscreen over pads, pad mask and paste, pins off the grid and missing fields. Each fix is checked before it is kept, and a fix that fails leaves that file unfixed, with the reason. Every other file is copied as it was. Manufacturer, part number and datasheet fields are only filled from an AI review's findings.
For a database library, changes to rows go in a change file for the database's owner (Open the database change file); the database itself is never written to.
Altium 365 workspaces
New in Trace Plugin 2.0: Library Remediation works with libraries that live in an Altium 365 workspace. Trace matches each part to its workspace ID, so a fix can go back as a new revision of the same part, keeping your designs linked, instead of a new part with a second ID.
An integrated library downloaded from Altium 365 together with its schematic and PCB libraries is checked as one library.
Match parts to their workspace IDs
- In Altium's Explorer panel, select the components and choose Operations > Export Grid, with the ID and part-number columns shown. Save it as CSV or Excel.
- In the audit, find the Altium 365 IDs section and press Add the component list…. Use Add another list… for more files; they are merged.
- Read the match counts: parts matched to one ID (by ID or by part number), part numbers held under two IDs or more (duplicates for you to choose between), parts to confirm, parts not in the workspace (new parts, which you import as usual), and parts without a manufacturer part number.
- Press Save the map… to write the matches and the duplicates as spreadsheets.
Export Grid leaves out Part Choices. If your list has no part-number column, the part's name stands in; add your part-number parameter as a column for a surer match.
With a component list added, the fix run also writes:
- Trace workspace map.csv, with each changed part's workspace ID;
- Trace workspace footprints and symbols.csv, listing which workspace items each fix reaches;
- Trace workspace duplicates.csv;
- a Trace workspace uploads folder, with each fixed footprint in a library of its own.
Put the fixes into Altium 365
After the fix run, the panel Put the N fixed footprints into Altium 365 lists the fixed footprints in batches:
- In Altium's Explorer panel, select the footprint items of one batch, right-click and choose Edit N revisions.
- In Trace Plugin, press Put the fixes in. Each fixed footprint goes into its own item's footprint.
- In Altium, use File > Save to Server once, with the option to update related items left ticked.
- Repeat for the next batch.
Trace Plugin saves nothing to the workspace itself: the save in step 3 is yours, from Altium. Altium opens only one footprint of a given name at a time, so when several workspace footprints share a name, the plugin puts them in separate batches. Open them one batch at a time.
The Putting the fixes into the workspace notes in the same section cover symbols, part fields, moving designs to the new revisions and choosing between duplicates. Do not bring fixed parts in with Altium's Library Importer: it gives every part a new ID, and your designs would stay on the old ones.
Share the report
Press Open report to see the results in your browser, or Save as HTML, PDF, Markdown or CSV. Reports and fixed libraries contain the library's details, so check them before sharing. Hand the library's owner the fixed copy, the change log and any findings left to fix.