-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to specify part number #11
Conversation
This looks great! I'll have to think about how to best handle part numbers... In my experience, it's helpful to have both a manufacturer part number, as well as an internal part number (for inventory, etc.), or at least the option to add both. The idea has been on my mind for a while, as well, especially since reading the Part Number Anthology eBook (see page 12 onwards). |
I did suggest to include it in the BOM for wires in a bundle as well for completeness, but realize that the wire part number will differ for each color. Is it possible to use a list of part numbers in the bundle case? |
ouch, you are probably correct. I guesss you would need to specify a list in that case... the question is how to handle repeated colors (and thus part numbers) in a bundle? would you need to specify the part number for every instance of that color in the bundle? |
The part number anthology is a useful link. In which case its probably worth having fields for manufacturer, manufacturer part number and internal part number. with those it is probably worth formatting part number information into a separate line in the top info section. Good spot on the bundle wires one way to avoid needing to specify it multiple times would be to use something like a wire info override field which allows for info on individual wires to be replaced. but adds some complexity to the format as a trade-off e.g.
This could also be used to add support for other differing features of a wire in a bundle or cable such as colour and gauge (but that probably wants to end up in its own issue). |
A straight foward implementation would need to repeat the numbers for repeated colors. To avoid that without moving wire properties into a new Wire class (a major refactoring) might end up as a bit ugly or user unfriendly solution, unless someone has a good idea. A refactoring like this will also open up for other differences between wires in a cable/bundle, like different gauge values (e.g. 2x1.5mm2+PE1mm2 cable), but it should then be raised as a new issue. |
@Tyler-Ward I did not see your last comment while I wrote mine. |
That doesn't look too bad. I'm assuming
Please also take BOM output into account. IMHO, empty columns should be deleted, e.g. if a hobbyist does not use internal part numbers, there's no use for an empty BOM column. Nit-pick: a space after the colon would make it look nicer: |
Another thing to consider is how to render part numbers in ferrules, like in example 6 from the tutorial. |
Added internal part number and manufacturer fields Added support for wire part numbers in a bundle Moved part number information to seperate row in table
0aa1392
to
1ec9ca4
Compare
Looks great! Trying to coordinate merging this with #28 (see my comment there), looking forward to it. |
The only issue I have is, in the example, it doesn't make sense for |
I'm working to merge this, including #54's nice use of lambdas ( |
There are some issues after the merge, will have a look tonight... Overall it looks promising. |
The merge seems to have been fixed. Both #11 and #54 are implemented.
Please let me know if any problems persist and submit them as new issues if necessary. Thanks a lot! |
All looks good here, Thanks for fixing the html output for cables that one slipped through. Will open an issue with the discussion about extra wire info for later discussion. |
(to be consistent with the changes proposed in #11)
(to be consistent with the changes proposed in #11)
(to be consistent with the changes proposed in #11)
This looks like a useful tool already found some good uses for it, I needed to be able to add connector part numbers to one I used it for so added a field for them. Feel free to merge if you think this will be useful to others. example 02 has been updated to show an example of this.