I’d like to have a part number property for a breadboard so I can specify the length of the wire in millimeters.
I have been able to compile the code to show the part number field but don’t see how to edit the field. How is that enabled?
I’d like to have a part number property for a breadboard so I can specify the length of the wire in millimeters.
I have been able to compile the code to show the part number field but don’t see how to edit the field. How is that enabled?
I expect the simple answer is likely you can’t. I expect doing this would require changes to the format of the .fz file to add the field you (and the necessary routines to set, load and save that field.) Your best bet would be to open an issue here on github and get a more informed opinion from one of the developers.
A description of what you have already done and what you want would likely be a good start. I doubt your fz file would be compatible with the standard release of Fritzing (as AFAIK there is currently no such field although I am not a developer!) Basically this appears to be a quite difficult change to make (although I may be wrong there.) The developers do sometimes read the forums and may choose to answer here as well, but gitub is the standard place for such requests and would likely get a faster response.
Peter
Well, I didn’t expect it would be easy. I’m not to familiar with cpp. I’m planning on using Python to extract a wire list from the .fz file as none of the exporters will give the raw data.
Because the part number field is editable in the Schematic and PCB, I think it could be simply a matter of enabling the edit routine for Breadboard too.
In any event, I’ll try github.
Thanks for your help.
I believe that is a different field (it is in a part not the wire and AFAIK the two are different.) It is easy enough to process the fz file in python (I usually use lxml, but any of the xml parsers should do it) but the results you want are likely to be much more difficult to achieve as the loader knows how to load .fz files but won’t know your new .fz format. Good luck! I would float this on github as you are going to need to convince the developers to make the necessary code changes and they may not be agreeable for backward compatibility reasons. I’d check with them before doing too much work. This is not an easy task to do (that much I can say from experience, I spent about 5 years trying to restart development after it stopped in 2016 without any success …) The code is very complex and totally undocumented pretty much.
Peter
I can confirm: “The code is very complex and totally undocumented pretty much.” I have changed the wire bool to to true which makes the part number field visible in the GUI and thus it shows up for a wire as a property. But it is not editable. And it’s a pain to follow the code as to make it editable.
Adding a property field to the fx and re-zipping doesn’t make it visible either. I could do it all by manually editing the xml and then extracting with Python but at that point I don’t really need Fritzing as I could just use Excel.
I’ve already asked on github. I don’t really need someone to do it for me, I just need to know where the code is located, I think.