openscopeproject / InteractiveHtmlBom

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

Hide DNP val/ref #336

Open Unichord opened 1 year ago

Unichord commented 1 year ago

I tried to tinker around and look through old issues but I can't seem to find this feature. I'd like to have an option to hide text(s) only of components which are not going to be mounted, because of variants/DNP. It's already fine as it is, but I think it would be clearer to not even have unneccessary values on the board. Maybe it can be done more easily by hiding them directly from KiCad (temporarily)? For my use case, only values can be hidden, but maybe also hiding references can be useful to someone?

Also, the possibility to differentiate the colors of SMD/THT could be useful to many I believe. I don't know if that's feasible.

Sorry if these are already been asked, and thanks for all your work.

Funkenjaeger commented 1 year ago

Generally, ibom is trying to faithfully represent the as-designed board so that it matches what you're seeing when you have the actual, physical board in front of you for assembly or troubleshooting. Are you saying you want to hide silkscreen in ibom that's present on the real board?

Unichord commented 1 year ago

Well, I planned to leave References visible, which are physically on the board even if they are DNP, so I agree with you on that. Values, on the other hand, are not. Even if the DNP components are never highlighted when hovering over the component list, the Value of DNP components on the board can be misleading. I believe a switch to hide Values which are not actually on the board due to DNP/variants would be useful.

qu1ck commented 1 year ago

I think it's not values that should be hidden but all of fabrication layer for footprints that are dnp.

Problem is with current architecture it's very unlikely to be implemented because graphics are processed before dnp components are determined.

Maybe in v3 or when/if the data format changes.

Unichord commented 1 year ago

That's a bummer, I'll wait patiently.

What about the different color for SMD and THT?

qu1ck commented 1 year ago

There are already 6 different colors that pads can be rendered and not a lot of color space left to differentiate stuff in 2 themes and 3 highlight modes. I suggest you use the checkbox and mark when checked features to highlight whichever components you want.

Unichord commented 1 year ago

I see, well it's not a big deal anyway, just a suggestion. I was more interested in the hidden Value for DNPs. Thanks.

For anyone interested, as a workaround I'm using a priority field so as to sort THT components last.