There are a few attributes left from my awk attempts. I used crossref-ms-no to keep track of how many subsymbols where related to that specific symbol. When the script found a coil, say K1. It went in to a loop browsing for subsymbols with the same refdes. When one was found it changed its crossref attribute and stored its coordinates. The coordinate ranges was hardcoded in a function that translated them somewhat randomly to "letter and number". I guess that a "prefer left" strategy would be better. Hidden attributes is a good idea for portability. The idea with the cross-reference labels, was to only allow two with the same name. Since I label all of the wires on my panels with unique numbers. Your suggestion is better, more readable and less typing. I am currently looking at the examples you suggested. Trying to break them down to read/write attributes. But I need to study guile a lot harder. Thanks for helping. //John On 03/29/2011 04:11 PM, Peter Clifton wrote:
Thanks.. What does the attribute crossref-ms-no mean? Is that how the contacts of a contactor can refer back to the location of the coil? Obviously each piece which is cross-reference-able needs to be identifiable, so the correct location is discovered. With regards the location cross-references labels, such as XR1, what happens if there are more than two locations? Is it only allowed that two exist? For producing correct electrical netlists, it is important that you assign the same netname to each object. I "think" this will work the way you have drawn, but it deviates quite a lot from what is "normal practice" in gEDA. Usually (when drawing schematics for PCBs / simulations), we label nets with a "netname=..." attribute, or (sometimes), to use a flag symbol like you have, with no refdes= attribute, but instead give it a "net=foo:1" (connecting net "foo" to the whatever is attached to pin 1 of the flag symbol). In order to implement this generically, I imagine your title block could be given some hidden attributes which describe the coordinate ranges inside it which correspond to different grid coordinates. Additionally.. what happens if an item being cross-references spans multiple grid coordinates? Can the choice be random, or does it need to be the one with most of the symbol in it - or top-left one, or some other rule? _______________________________________________ geda-user mailing list [1]geda-user@moria.seul.org [2]http://www.seul.org/cgi-bin/mailman/listinfo/geda-user References 1. mailto:geda-user@moria.seul.org 2. http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
<<attachment: john.vcf>>
_______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user