Not sure how to react here. I am honestly not 'testing' anyone, I am just eager to learn.dprojects wrote: ↑Sun Dec 04, 2022 2:03 pmYour code at github not looks like newbie code You know a lot about FreeCAD and pythonPaulCobbaut wrote: ↑Sun Dec 04, 2022 12:30 pm I don't know what "import something as" does, still learning Python.
It looks like you are good developer but you want to test us, if we will see all the "mistakes" or not, for me this is a little funny, because I see you are good developer
I am 52 and have been a system administrator, not a developer, really. I did try to read a lot about Python, and looked at other people's code. The commenting of code is what I learned from looking at my own bash scripts years after writing them. Also I wrote https://linux-training.be, so I have a bit of experience in documentation
I spent a lot of time on FreeCAD the past seven months, but am still definitely a newbie!
That would be a fun exercise to do.
That is a leftover from when testing the code and looking at the result in the GUI. Will comment it out.dprojects wrote: ↑Sun Dec 04, 2022 2:03 pm Also at the end there is beauty test flower
without importing FreeCADGui this will be working as macro at editor maybe but if you move the code as tool "icon" at workbench this will not be working without FreeCADGui import. At FreeCAD it is better to import everything what you use, so the code will be more flexible, mobile, you save your time later, for example if you want to move it as workbench tool.Code: Select all
FreeCADGui.ActiveDocument.ActiveView.fitAll()