Libraries
A library is a design file that another design uses components, processes, stacks and formats
from. Any .exw file can be one. A design links it by file name, and the linked file’s items are
then placed and picked like the design’s own. Built-ins is a library that ships with the app.
See Components & Libraries for linking, unlinking and
relinking a file.
Linked files
A design links files from its own folder only, so a design that has never been saved cannot link a library. A linked file’s own links load too, but you place only from the files your design links itself. A design cannot link a file that links it back, directly or through another file.
To move a design to a new version of a library, save the new version under another name, such as
parts-v2.exw, and relink the design to it.
What a library holds
- Components, its root included. A script component’s script file sits beside the library file (Script components).
- Processes and stacks. The Fab processes window and the
stackpicker list them under the file’s name. - Formats, offered in the inspector’s Format combo.
Read-only items
Everything a library gives your design is read-only in it. You use a library component by placing it and setting its arguments at each placement. Some things stay yours on a library item: the world ports you mark on terminals inside a placed component, and the base layer of a library stack.
To change a library item, edit it in its own file with Open in library file, or copy it into your design with Make local copy. A local copy is editable, and your design uses it in place of the library’s. The copy remembers its source, so Move to library… puts the edited copy back under its original name. Built-ins have neither command.
When a library changes
A library file can change after you place its items: a component is renamed or deleted, a parameter or pin goes, or the file itself goes missing. Each place where your design still refers to what is gone is a library problem.
- An instance of a component that is gone draws as a red marker with its label. Channels that end on it are not drawn.
- A value you set on a parameter that is gone, or whose kind changed, is ignored, and the instance uses the library’s default.
- A channel that ends on a pin that is gone is not drawn.
- A library stack with fewer layers than your design uses leaves out what lies on the missing layers. When the active stack, or a process it uses, is gone, nothing of the chip is shown.
The design still opens, and saving keeps the references to what is gone. When the library gets the item back, reopening the design clears the problem with no edit. Export refuses to write files while the exported component has a library problem. See Components & Libraries for the repairs.
See also
- Components & Libraries — the browser that links libraries and lists their components.
- Components, parameters & pins — definitions, placements and arguments.
- Slots — what a library edit does to a filled slot.