New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Extend PartDesign's python interface (API) #8345
Comments
@Jee-Bee can you make a list of requested python functions (that we can track in this ticket) ? |
I tried to create a list of features i want to acces. I don't care about the naming. I think that is not my role even if i created the FR.
I'm not sure about the primitives. I personally don't care. But i can understand that others thing different about that |
Thanks! I added checkboxes and separated the groupings (since it the whitespace separations weren't showing up in the markdown) |
NB : all listed objects can be make throw DocumentObject.addObject and BodyObject.newObject so only helpers are claimed.
|
Maybe this is a usecase for @mnesarco's https://github.com/mnesarco/fcscript ? |
Yes, in the demo macro available after install, there are many examples creating sketches and padding in a PD Body. |
The request is not about what is already possible. Ofcourse i can record a macro and i am able to automate things... |
fcscript is a project of a simplified and pythonic api for FreeCAD |
Thanks! Sounds like a good idea, assuming it ends in FC main code ;) |
@Jee-Bee it's currently available via the Addon Manager. It's super promising! |
I don't consider Part Design to be primarily intended for this kind of use, I consider this request out of scope for the Part Design project as maintaining an additional interface is quite the maintenance burden as it would need to be constantly updated and extended as Part Design evolves. Not everything needs to be on the main repo, I would say mnesarco's addon satisfies this need. Also consider using the Part API instead when working through python. |
Is there an existing request for this?
Forums discussion
https://forum.freecad.org/viewtopic.php?t=75627
Subproject(s) affected?
PartDesign
Idea description
Currently the PartDesign Workbench is scriptable but not on a nice pythonic way.
There are only a few features directly accessible when import PD.
an example of what i have in mind(rough idea):
Since it is some time ago that i checked the PD C++ code i'm not sure if my rough idea is the best way to go.
In my opinion every feature that is accessible from python is an improvement
Anything else?
Print screen of current in python available PD features
Code of Conduct
The text was updated successfully, but these errors were encountered: