Feature Request: Freezing objects in a project.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Feature Request: Freezing objects in a project.
Suppose a project consisting on several objects. Suppose the user consider that some of them will not be modified in the near future and he/she works on the rest of the objects. How hard would be to implement a freezing on the former objects for the system(/solver/FreeCAD) to use CPU time just on the objects under develop?
I have uploaded many FreeCAD video tutorials to my YouTube channel
Re: Feature Request: Freezing objects in a project.
The natural way to handle this would be to place the "frozen" object in a separate file, and import it into another file with an App_Link. This new object in 0.19 was precisely developed to do this, to avoid consuming a lot of resources from already made objects.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: Feature Request: Freezing objects in a project.
Cool!vocx wrote: ↑Tue Mar 10, 2020 3:43 amThe natural way to handle this would be to place the "frozen" object in a separate file, and import it into another file with an App_Link. This new object in 0.19 was precisely developed to do this, to avoid consuming a lot of resources from already made objects.
Gonna make make some tests...
Particularly I was thinking on a solution consisting in producing a binary object by using Python to compile it.
Regards
I have uploaded many FreeCAD video tutorials to my YouTube channel
Re: Feature Request: Freezing objects in a project.
Isn't this what a simple copy does?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Feature Request: Freezing objects in a project.
This sentence doesn't make much sense. Python is not a compiler.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: Feature Request: Freezing objects in a project.
What about using pyinstaller (in the free world) or py2exe (in window$) ?
Would't it help in this approach?
I have uploaded many FreeCAD video tutorials to my YouTube channel
Re: Feature Request: Freezing objects in a project.
I'm sorry but this makes even less sense. I don't understand what you want now. Remake the question.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: Feature Request: Freezing objects in a project.
The sequence is this:
I would want that FreeCAD do calculation on "finished" objects just once (then "freeze them"). And as project grows, that CPU time be used on new unfinished objects.
The strategy I mentioned consisted on (by some means) create binaries of "frozen objects" . Then I found that Pyinstaller was able to create binaries from python scrips. (I have not used Pyinstaller). Then was wondering if Pyinstaller could help in making that job.
I have uploaded many FreeCAD video tutorials to my YouTube channel
- adrianinsaval
- Veteran
- Posts: 5541
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Feature Request: Freezing objects in a project.
That seems counterproductive, if you only save a script that would generate the shape you want then it woukd have to be generated every time, I don't even think it's possible to mix freecad with pyinstaller if I understand things correctly.
What you probably want is to save the finished parts as separate FreeCAD files and import them as links or subshapebinders into your main project. FreeCAD files are not just python scripts, they contain the generated shapes of the objects and they usually aren't re calculated unless you modify or recompute the object in question.
What you probably want is to save the finished parts as separate FreeCAD files and import them as links or subshapebinders into your main project. FreeCAD files are not just python scripts, they contain the generated shapes of the objects and they usually aren't re calculated unless you modify or recompute the object in question.