sparkfunX / Buzzard

Software tools for EAGLE silkscreen generation
100 stars 18 forks source link

Handle Collections of Labels w/ Different Options #10

Closed oclyke closed 4 years ago

oclyke commented 4 years ago

When completed this PR will allow users to create a list of labels with unique options that can all be processed into a single output.

oclyke commented 4 years ago

Now that I managed to hide my changes to those pesky .pyc files I'd say this is ready for testing / review.

I'm using these changes to update the Artemis Dev Kit

example usage:

P.s. I am seeing bugs with the ability to append using normal syntax. Will try to resolve

oclyke commented 4 years ago

Phew... I think those commits managed to fix it.

oclyke commented 4 years ago

When I got to testing this in an actual use case I came up with a script of about 50 labels. Eventually I needed a duplicate label with a different size so I discovered a bug in the serial number detection for the append mode.

It should not be too hard to fix - just create a good regular expression to peel the serial number off the end of the string right? Well in the case of generating pin numbers the current name format (NAMESERIAL) is hard to parse.

I've started a new branch that changes the format to SERIAL_NAME which has two benefits: 1) able to easily solve the serial number detection issue 2) labels as shown in Eagle are now in the same order as they appear in your script