Search found 475 matches
- Wed Mar 27, 2024 4:26 pm
- Forum: Python scripting and macros
- Topic: Scripted Objects (FPO) API + Docs
- Replies: 16
- Views: 1379
Re: Scripted Objects (FPO) API + Docs
I have found the implementation of addObject(type, name=None, objProxy=None, viewProxy=None, attach=False, viewType=None) Here is de c++ code: https://github.com/FreeCAD/FreeCAD/blob/ef16ecafc25f8505ed6e322d5c2be1c1b4a82f4a/src/App/DocumentPyImp.cpp#L261 And here some documentation: https://github.c...
- Wed Mar 27, 2024 3:25 pm
- Forum: Python scripting and macros
- Topic: Scripted Objects (FPO) API + Docs
- Replies: 16
- Views: 1379
Re: Scripted Objects (FPO) API + Docs
Hello Friends, I am trying to add Link support, The well know pattern to create a FeaturePython is: obj = App.activeDocument().addObject(type, name) # First create the FC PythonFeature MyFeaturePythonProxy(obj) ## Create the proxy and pass the FP MyFeaturePythonViewProvider(obj.ViewObject) # Create ...
- Mon Mar 25, 2024 9:24 pm
- Forum: Python scripting and macros
- Topic: Scripted Objects (FPO) API + Docs
- Replies: 16
- Views: 1379
Re: Scripted Objects (FPO) API + Docs
Updated version: More ViewProvider stuff.
- Mon Mar 25, 2024 9:22 pm
- Forum: Python scripting and macros
- Topic: Scripted Objects (FPO) API + Docs
- Replies: 16
- Views: 1379
- Mon Mar 25, 2024 4:44 pm
- Forum: Python scripting and macros
- Topic: Documentation of extensions (addExtension(...))
- Replies: 4
- Views: 500
Re: Documentation of extensions (addExtension(...))
I have started a new thread to get some feedback about my current effort to create a comprehensive API and documentation about FeaturePython Objects.
viewtopic.php?t=86414
viewtopic.php?t=86414
- Mon Mar 25, 2024 4:40 pm
- Forum: Python scripting and macros
- Topic: Scripted Objects (FPO) API + Docs
- Replies: 16
- Views: 1379
Scripted Objects (FPO) API + Docs
Hello Friends, For years, I've been developing FeaturePython Objects (FPOs) as internal tools. Over time, I've also built a custom API on top of the existing ones to improve robustness and consistency. I've studied many existing AddOns and Workbenches, noticing that similar problems are solved with ...
- Thu Mar 21, 2024 4:57 pm
- Forum: Python scripting and macros
- Topic: Documentation of extensions (addExtension(...))
- Replies: 4
- Views: 500
Re: Documentation of extensions (addExtension(...))
I am collecting all these spare pieces of information from the forum, source code, external workbenches, wiki.... and putting all together in one curated document about FPO creation and maintenance including migrations, selection, extension, display modes, serialization. It includes recipes and sour...
- Thu Mar 21, 2024 1:22 pm
- Forum: Python scripting and macros
- Topic: Documentation of extensions (addExtension(...))
- Replies: 4
- Views: 500
Documentation of extensions (addExtension(...))
Hi Friends, I have been writing a large document of `FeaturePython` recipes and I will contribute it to FreeCAD once I complete my initial goal. My current topic is about extensions: ### Object extensions * App::GeoFeatureGroupExtensionPython * App::GroupExtensionPython * App::LinkBaseExtensionPytho...
- Fri Mar 15, 2024 1:22 pm
- Forum: Python scripting and macros
- Topic: Why is CurvesWB not built-in?
- Replies: 6
- Views: 715
Re: Why is CurvesWB not built-in?
What are the tools that would deserve transition to FC in your opinion ? Hi Chris_G, it is hard to decide, I am just learning how to use it, but I think that anything that is battle tested can be merged into upstream FC. Working with curves and surfaces is a fundamental functionality, I Think this ...
- Fri Mar 15, 2024 1:11 pm
- Forum: Python scripting and macros
- Topic: Minimum/Maximum supported python versions
- Replies: 7
- Views: 561
Re: Minimum/Maximum supported python versions
This is what I suggest: FC Py_min Py_max 0.19 3.4 3.9 0.20 3.5 3.11 0.21 3.5 3.12 0.22 3.8 3.13 Thank you wmayer. I know there is nothing "officially supported" or "officially unsupported" in FreeCAD but this table is good enough. So based on that, I assume that coding for 3.6 i...