Hello Svenn,

Is it possible to place parametised labels which can be replaced by a tcl
script on the fly?

You sent this email to you right at the time I was moving.  I said that
I would look up a use-case but then forgot about it.  Did you figure
out what you needed?

The library I was thinking of is "quadparts".  If you go to File->
Library Manager, click on "Source Technology File" and select
"quadparts", then click "Load All".  You will then have parts like
"quadnand".  On the library page is one basic object and three
"virtual instances" of that object.  Each virtual instance has a
different pinout.  The pin numbers are predicated on a single
paramter named "part".  If you select an instance and place it on a
schematic, then hit Ctrl-p to get the parameters, then click on the
"Value" entry for parameter "part", it will give you a choice of 1 to
4.  Once you've chosen which part number is to be used, the pin
numbers change accordingly.

The "expression" parameter is a Tcl script that is evaluated on the
fly.  The value of the expression has two forms depending on context,
one of which is the Tcl expression itself, and the other which is the
result of the Tcl expression.

Let me know if you have any difficulty setting up such an expression
parameter.
                                        Regards,
                                        Tim

+--------------------------------+-------------------------------------+
| R. Timothy Edwards (Tim)       | email: [email protected]    |
| Open Circuit Design            | web:   http://opencircuitdesign.com |
| 19412 Cissel Manor Drive       | phone: (301) 528-5030               |
| Poolesville, MD 20837          | cell:  (408) 828-8212               |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to