Re: [kicad] Hiding EDA_ITEMs

2023-01-19 Thread James Jackson
Hi Seth, This was actually happening before a global Update... and ForceRefresh(), so slightly confused why it wasn't working. However, on the MR thread Jeff Young suggested another method which has worked perfectly. I'll tidy up the commit and get some more involved testing done, but it's look

Re: [kicad] Hiding EDA_ITEMs

2023-01-18 Thread Seth Hillbrand
Hi James- After you set a flag on a view item, you will need to update it and then force a refresh on that item. This can be done using `UpdateAllItemsConditionally` and then calling a `ForceRefresh`. Since the ERC items live on an overlay, I don't think that you need to mark the layer dirty. B

[kicad] Hiding EDA_ITEMs

2023-01-18 Thread James Jackson
Hi all, I'm making some decent progress with https://gitlab.com/kicad/code/kicad/-/issues/10926 (WIP here: https://gitlab.com/kicad/code/kicad/-/merge_requests/1460 ), but have hit an issue I can't figure out. I need to set EDA_ITEM visibility in SCH_EDIT_FRAME::DisplayCurrentSheet(), so I can hi