Search found 2566 matches
- Wed Mar 01, 2023 3:12 pm
- Forum: Python scripting and macros
- Topic: Python PD Programming Example rebuild
- Replies: 20
- Views: 2291
Re: Python PD Programming Example rebuild
Probably we are talking of different things. Not enough to start an arguiment :p Historically a Macro has two incarnation: 1) a recording of a sequence of commands that could be played to replicate an action. 2) a piece of code written in a language usually specific of a program to make something t...
- Tue Feb 28, 2023 9:27 pm
- Forum: Python scripting and macros
- Topic: Python PD Programming Example rebuild
- Replies: 20
- Views: 2291
Re: Python PD Programming Example rebuild
https://forum.freecad.org/viewtopic.php?t=72207 Thank You for the link I'm quite sure it is working right, I have not tested it recently. I have tested it as a macro and it works right. For me the question is: What kind of script do we want to create. If the goal is a macro. the current one is righ...
- Sun Feb 26, 2023 9:32 pm
- Forum: Python scripting and macros
- Topic: Python PD Programming Example rebuild
- Replies: 20
- Views: 2291
Re: Python PD Programming Example rebuild
As i mentioned before: I want recreate the example in a PD like workflow. I. know you want help me with other / better solutions as what i'm asking but i want a certain workflow where currently is no example available. I understand that it has drawbacks. But the biggest drawback currently is that th...
- Thu Feb 23, 2023 9:33 pm
- Forum: Python scripting and macros
- Topic: Python PD Programming Example rebuild
- Replies: 20
- Views: 2291
Re: Python PD Programming Example rebuild
yes your right. In this simple usecase.
But in more complex usecases this can shift toward more PD like workflow. Even if i'm wrong in this assumption and is it more a user / programmer preference then is it good that any( new) FC programmer have a starting point.
But in more complex usecases this can shift toward more PD like workflow. Even if i'm wrong in this assumption and is it more a user / programmer preference then is it good that any( new) FC programmer have a starting point.
- Wed Feb 22, 2023 9:34 pm
- Forum: Pull Requests
- Topic: PR for macOS QuickLook support and document icon enhancements
- Replies: 1
- Views: 7275
Re: PR for macOS QuickLook support and document icon enhancements
Cool Nice Idea!!
- Wed Feb 22, 2023 8:35 pm
- Forum: Python scripting and macros
- Topic: Python PD Programming Example rebuild
- Replies: 20
- Views: 2291
Python PD Programming Example rebuild
I had here asked about the PD and python. Later on i came (not sure if it was metioned in previous topic) i saw Part Design scripted objects example on the wiki. A Problem i have with it is that it is more or less a Part Workflow in the PD world. So I tried to rework the example to a more PD like wo...
- Sat Feb 04, 2023 2:20 pm
- Forum: Python scripting and macros
- Topic: Create python class from PD workbench
- Replies: 7
- Views: 1226
Re: Create python class from PD workbench
Thanks for your answers even if they are not what i was hoping for!
I have created a FR(issue #8345). maybe some time in the feature there are more option to script from PD
I have created a FR(issue #8345). maybe some time in the feature there are more option to script from PD
- Sun Jan 29, 2023 6:48 pm
- Forum: Python scripting and macros
- Topic: Create python class from PD workbench
- Replies: 7
- Views: 1226
Re: Create python class from PD workbench
So the short conclusion is PD is not meant to be subclassed. Maybe even worse(at least from my point of view) almost none of the PD features is accessible directly what do i meant with directly: after importing PartDesign there are only a few features available: Screenshot 2023-01-29 at 13.00.23.png...
- Sun Jan 29, 2023 1:17 pm
- Forum: Python scripting and macros
- Topic: Create python class from PD workbench
- Replies: 7
- Views: 1226
Re: Create python class from PD workbench
What is the purpose of extending a PD object? PartDesign is 'Festure Based" so you coukd not add anything to a feature as there are code underlying that use parameters to "make the feature". I understand that at least most of it... But if i'm able to inherit it, it is directly clear ...
- Sat Jan 28, 2023 10:35 pm
- Forum: Python scripting and macros
- Topic: Create python class from PD workbench
- Replies: 7
- Views: 1226
Create python class from PD workbench
I am reading through the Wiki about FC and python. I know that PD workbench is a C++ WB, but there are basically no python bindings available i am wondering if it is somehow possible to (kind of) Inherit from PD objects. for example: import PartDesign as pd class extended_body(pd.body): __ini__(self...