FreeCAD python type definitions, code documentation

Need help, or want to share a macro? Post here!
vocx
Posts: 1842
Joined: Thu Oct 18, 2018 9:18 pm

Re: FreeCAD python type definitions, code documentation

Postby vocx » Mon Sep 09, 2019 5:59 pm

Bayesian wrote:
Mon Sep 09, 2019 5:20 am
... I just want to share some of my experiences with getting to know it. ...
Oh, please do. When FreeCAD was started, Python wasn't as popular as it is now. In the last 17 years it has significantly expanded. I presume you also don't write code the same way you did in the beginning. Current developers are still learning to do things; in fact, learning is never a finished task. Refactoring isn't a bad thing per se, and any help is welcomed.
Last edited by vocx on Tue Sep 10, 2019 5:49 am, edited 1 time in total.
Bayesian
Posts: 57
Joined: Thu Aug 08, 2019 1:49 pm

Re: FreeCAD python type definitions, code documentation

Postby Bayesian » Tue Sep 10, 2019 5:43 am

FreeCAD reminds me a lot of Blender. Blender was also started 20 years ago, when the paradigm was "Write Applications in C/C++, extend them with Python". Now it's more like "Write Applications in Python, extend/accelerate them with C/C++/Rust and GPU".
User avatar
Cyril
Posts: 70
Joined: Wed Aug 23, 2017 5:04 pm
Location: Geneva (Switzerland)
Contact:

Re: FreeCAD python type definitions, code documentation

Postby Cyril » Tue Nov 12, 2019 10:54 am

An exemple of stubs generated by community for Revit API as auto completion don't work natively : https://github.com/gtalarico/ironpython-stubs

I would love to have something like this in FreeCAD. As project above works on any (.NET?) .dll and is based on another project adapting it for FreeCAD .so/.dll might be not a too big effort.
I blog about HVAC / BIM / Energy : pythoncvc.net. If you like you can follow the RSS feed.