Mail Archives: geda-user/2015/08/08/09:09:57
Hi,
On Thu, 30 Jul 2015, Wojciech Kazubski (wk AT ire DOT pw DOT edu DOT pl) [via geda-user AT delorie DOT com] wrote:
>>> Please add more pin numbering options to connector generator. The existing
>>> one can be named "d-sub" style, also "flat cable" and "dip" should be
>>> considered.
>> Two alternate numbering can be achieved by pivoting n and m:
>>
>> connector(2,3) and connector(3,2) will generate the same geometry 90
>> degrees rotated but because of the pivot the numbering scheme (seems)
>> different.
>
> One is a mirror image of the other. Not a problem if one remembers to place
> the connector on the other side of the board.
> Additionally the "outer" mark is on short side of the connector instead of
> long one.
>
>> The "dip" numbering is not accessible this way, I will invent a parameter
>> for that, thanks for the idea!
I've added a new optional parameter to connector(), called sequence. A
sequence=pivot swaps the pin numbering scheme between the x and y axis. A
sequence=zigzag does the "dip" numbering. I didn't call it dip because
it'd make sense only when there are exactly two rows, while the script
behaves "as expected" for larger matrix of pins. There are some broken
corner cases when sequence=zigzag is combined with etrunc=1 and row number
larger (ny) than 2 - I am not sure whether it is worth the complication to
fix them.
I've also added silkmark=externaly which rotates the triangle. Another
option "externalx" is an alias to the original "external". This way you
can chose to put the triangle along the "long" or "short" side (but the
terminology is x and y, since long and short doesn't always make sense,
especially with n*n pins, while x and y always works).
Thanks again for the ideas!
Regards,
Igor2
- Raw text -