[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: Multiple user libraries, parametrized components



Hi,

There is a notion of a current library in gEDA (the one that can be
set with: (component-library "dir-name") (source-library "dir-name")
).

Now, what if I have multiple (source&component) libraries that I want
to use? How to add them all so that they are visible in gschem? And
how to select a cell "A" from library "B" instead of library "C"?
"source" attribute seems to specify the file name only, without
library name, directory etc.

---

Also, is it possible to refer to an actual cell name / library name
etc. from the symbol?

Example:
gTAG-consio.sym symbol has a label with a cell name included. This
label, however, will not be automatically updated if I copy the cell
to a different file. Is it possible to add some kind of an attribute,
possibly a scheme code, that will return the current cell name (or
other information)?

Say, somebody might want to include a label containing:
(cell-name), or
(lib-name), or
(revision-number), etc.

Although, I agree, there might be a security risk in doing this when
the cell is downloaded from unknown source, there are at least 2 ways
of tackling this:
1. define a set of functions that can be called from the code embedded
in the symbol.
2. provide a configuration option that by default disables evaluation
of the code embedded in user-defined cells.
2a. prompt for a permission to evaluate such a code.

-r.


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user