openscopeproject / InteractiveHtmlBom

Interactive HTML BOM generation plugin for KiCad, EasyEDA, Eagle, Fusion360 and Allegro PCB designer
MIT License
3.77k stars 483 forks source link

R1,R2,R3 could become R1-R3 #20

Open hildogjr opened 6 years ago

hildogjr commented 6 years ago

R1, R2, R3, R4, … could become R1-R4 on order_refs(foo) of the KiCost file have the function to do that. https://github.com/hildogjr/KiCost/blob/master/kicost/eda_tools/eda_tools.py

I did implement on my pull request because I have to check if “R1-R4” will affect the search box.

I also added a example (acquire-PWM - iBOM.html.zip) to see why I think this is interesting.

qu1ck commented 6 years ago

Whoa, that's quite a complex board. Do you mind if I add it as one of demos? If you can share the pcb file, of course.

This will definitely affect search box. If this were to be done it should be done in javascript on the fly, not in python.

hildogjr commented 6 years ago

True, but javascript is not my expertise at the moment. You can add this HTML to the demos, just keep some reference to me at the file/folder/ README file about this, the kicad_pcb file that I am not able to share yet (part of my PhD study). Also, appear more interesting just create a demo folder on this repository (not keeping one alone for the demo boards).

As you comment on other topic, trim or round the double precision could be nice in terms of file size.