I'm having a tough time searching for how to make a standard toolbar, like one that could be put in Master at some point. Is there a template or some sample code? I search and most all I get is how to install or modify in the program. Just doing a little research.
Last edited by freedman on Sun Nov 15, 2020 6:27 am, edited 1 time in total.
Python. My thoughts were to get everything working in a macro then let you folks review and tear it up, to get it right. and then migrate to a toolbar. I would expect to build some icons (again for review), I don't know how this all packages but I would hope to get 95% of the work finished and then someone can try to integrate. I don't see me compiling FreeCAD currently.
Thanks all. That should do it.
Here is my target, I put together a 5 minute quick pic so you get the idea.
The first icon associates directly with (on v0.19) the setting Edit-Preferences-Sketcher-Display-Check box "Hide all objects that depend on the sketch". The button is a toggle SM1-SM2, SM2-SM1, the text stands for Sketch Mode 1 and 2. The button when set to SM2 needs to set the check box and set the option "Apply to existing sketches".
I don't know how to apply "Apply to existing sketches" in code, I don't know if it's ever been done.
The next three buttons set the global visibility (all objects) to the shown transparency.
I will do a following post showing why I think this setting is one of the most important changes FreeCAD can make.
Obviously the SM1-SM2 could turn into a series, SM3,SM4......
The reason behind the toolbar follows in the pics. Each pic shows Sketch mode 1 (SM1) on the left and Sketch mode 2 (SM2) on the right.
Just about every time I get a file off the forum I convert the file to SM2 format, it allows me to see where the sketches are placed relative to the model. Also, I have been using SM2 for about 2 years, I get to design and see the entire model.
The problom with SM2 is the fact that you can't see sketches imbeded in the model so most everyone uses (SM1), the FreeCAD default. If we can change the global transparency easily then we all can start using SM2.
I think it's easy to see that SM2 is a better format for modeling.
To refresh what SM1, SM2 look like (in 0.19).
SM1 = Edit-Preferences-Sketcher-Display-Check box "Hide all objects that depend on the sketch" is checked.
SM2 = Edit-Preferences-Sketcher-Display-Check box "Hide all objects that depend on the sketch" is unchecked.
You will need to "Apply to existing sketch".
SM1_SM2_sketch.png (275.85 KiB) Viewed 178 times
SM1_SM2_sketch1.png (193.43 KiB) Viewed 178 times
SM1_SM2_sketch2.png (210.69 KiB) Viewed 244 times
SM1_SM2_sketch3.png (215.66 KiB) Viewed 244 times
SM1_SM2_sketch4.png (188.28 KiB) Viewed 244 times
Last edited by freedman on Fri Nov 13, 2020 7:31 pm, edited 3 times in total.