Hi Tim,
Thank you for the quick response.
This is what I did:
1) Open the Library and select the LM258 symbol
2) (V) to create one a virtual symbol
3) Select the virtual symbol
4) Pop into the virtual symbol (>)
5) Select pinlabel 7
6) Text->Parameterize->Name output
* At this point the pin dissappears
and I am unable to edit it.
7) I repeat the process for pinlabels 5 and 6
8) Pop out of the symbol (<)
When I save the the library I get:
/LM258 {
<</non-invert {(5) {/Helvetica cf} } /invert {(6)
{/Helvetica cf} } /output {
(7) {/Helvetica cf} } /U (?) >> begingate
1 1.00 -80 79 -80 -80 79 0 -80 79 4 polygon
1 1.00 -112 48 -80 48 2 polygon
1 1.00 -112 -48 -80 -48 2 polygon
1 1.00 79 0 111 0 2 polygon
(+) {/Helvetica cf} 2 16 0 1.00 -64 -48 label
(-) {/Helvetica cf} 2 16 0 1.00 -64 32 label
(6) {/Helvetica cf} 2 16 0 0.50 -95 64 label
(5) {/Helvetica cf} 2 16 0 0.50 -95 -80 label
(7) {/Helvetica cf} 2 16 0 0.50 80 16 label
1.000 0.000 0.000 scb
0.180 0.545 0.341 scb
mark U (pcb:U) {/Helvetica cf} ctmk 16 0 0.50 -80 80
infolabel
sce
mark U (U) {/Helvetica cf} ctmk 16 0 1.00 -48 1 label
(LM258-1) {/Helvetica cf} 2 16 0 0.50 -64 -16 label
1 1.00 16 80 16 32 2 polygon
1 1.00 16 -32 16 -80 2 polygon
1.000 0.000 0.000 scb
(8) {/Helvetica cf} 2 16 0 0.50 16 80 pinlabel
(4) {/Helvetica cf} 2 16 0 0.50 16 -80 pinlabel
sce
(8) {/Helvetica cf} 2 16 0 0.50 32 32 label
(4) {/Helvetica cf} 2 16 0 0.50 32 -48 label
endgate
} def
/LM258 libinst
This may or may not be relevant but I noticed that
the .lps file contains the "/LM258 libinst" line but
the .ps file does not.
Dave M.
------- Original Message -------
From : Tim Edwards[mailto:[email protected]]
Sent : 8/21/2009 10:03:54 AM
To : [email protected]
Cc : [email protected]
Subject : RE: Re: [Xcircuit-dev] XCircuit Virtual
Symbol Pin Numbers Question
Dear Dave,
> I am using V3.4 of X-Circuit. I am having a problem
> creating a virtual symbol (in my library) that has
> different PCB netlist pin numbers. I create a symbol
> and assign the netlist pin numbers (using the 'T'
> command). I then use the 'V' command to create a
> virtual symbol. When I edit the virtual symbol (using
> the '>' command, changing the pin numbers and exiting
> with the '<' command), the pin numbers on both the
> virtual symbol and the original symbol change.
> On the virtual symbol I need to change pins 7,5,6 to
> 1,3,2 respectively and remove pins 4 and 8 from the
> virtual symbol.
The "virtual symbol" can display specific parameters
of an object
instead of the defaults (which is the usual case for
a symbol in a
library). However, to do this, the element that you
want to take
on different values must be parameterized.
Otherwise, it's just a
line, or a piece of text, etc., that is common to all
instances of
the object.
So edit the "library virtual instance" object (">"
command, from the
library page), then select a pin name, e.g., "7";
select the menu
option Text->Parameterize, and choose a parameter
name (like "pin7").
Now, if you edit that text, the edit line will say:
Font=Helvetica Parameter(pin7)<7>
edit the parameter part of this string to read:
Font=Helvetica Parameter(pin7)<1>
If you pop back up to the library ("<" command), you
will see that the
main library object has pin "7" and the virtual
instance has pin "1".
Do the same thing for the remaining pins. Because
you will want both
the pin name and the displayed text to read the same
number, when you
edit the pin itself, instead of creating a new
parameter like you did
before, instead delete the text (e.g., in the example
above, "7"). Then
use Control-P to bring up the parameter window
(except in 3.4 it's
Alt-P, I think; really, you should be using version
3.6) and select
the parameter to insert. That way, the same
parameter ("pin7") tracks
for both the pin name and the displayed text.
With xcircuit version 3.6, there are even more
complicated ways to
let all of the pin numbers track the device
sub-number (258-1, -2, ...)
automatically, but that's a much more involved topic.
I hope that helps!
Regards,
Tim
+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim) | email:
[email protected] |
| Open Circuit Design, Inc. | web:
http://opencircuitdesign.com |
| 22815 Timber Creek Lane | phone: (301)
528-5030 |
| Clarksburg, MD 20871-4001 | cell: (240)
401-0616 |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev