Re: [Kicad-developers] Evaluating cross-selection between the 3D-Viewer and Pcbnew

2020-09-03 Thread Mário Luzeiro
Thanks all for the suggestions on this subject. I managed to implement almost all the things I had in mind without using kiway. >From the 3D-Viewer side, I got the board information with all the items state >(eg using IsSelected as Fabien suggested) but that only works one way Pcbnew -> Board ->

Re: [Kicad-developers] Evaluating cross-selection between the 3D-Viewer and Pcbnew

2020-09-02 Thread Seth Hillbrand
I'll second what Ian has said with one caveat. When we replace the Kiway interface in v7, we'll be ripping out all previous interfaces, so I think we should be fine even if there is a new probe from pcbnew->3d Viewer. That said, we are about 1 month away from feature freeze, so any implementation

Re: [Kicad-developers] Evaluating cross-selection between the 3D-Viewer and Pcbnew

2020-09-02 Thread Ian McInerney
The 3d viewer does have access to the kiway, but I really think we need to think about how this is done before we just go adding a cross-probing interface between pcbnew and the 3d viewer. As our kiway is written currently, adding the cross-probing will basically be adding a brand-new messaging pro

Re: [Kicad-developers] Evaluating cross-selection between the 3D-Viewer and Pcbnew

2020-09-02 Thread Wayne Stambaugh
It's part of the kiway mail messaging system. Take a look at the kiway*.{h/cpp} files. I'm not sure if the 3D viewer is derived from KIWAY_PLAYER. If it is, this should be fairly straight forward assuming you can figure out the component position from the model geometry and translate that back t

Re: [Kicad-developers] Evaluating cross-selection between the 3D-Viewer and Pcbnew

2020-09-01 Thread Fabien Corona
Hi, I'll try to answer what I can, hopefully others can complete if something important is missing. Here are two related issues : https://gitlab.com/kicad/code/kicad/-/issues/3859 https://gitlab.com/kicad/code/kicad/-/issues/4440 These are some functions to cross probe,: https://docs.kicad-

[Kicad-developers] Evaluating cross-selection between the 3D-Viewer and Pcbnew

2020-09-01 Thread Mário Luzeiro
Hello all, I'm evaluating how/ if it will be possible to implement some kind of cross footprint selection between the 3D-Viewer and Pcbnew. I know that it works with Schematic and Board so I believe there are already some existent mechanisms.. but I don't know what exists in KiCad source-code f