Search found 2741 matches

Go to advanced search

by looo
Wed Jan 06, 2016 8:49 pm
Forum: Python scripting and macros
Topic: Why doesn't freecad modules look like normal python modules?
Replies: 26
Views: 4260

Re: Why doesn't freecad modules look like normal python modules?

I have tried to place the PartGui directly in the /lib directory and it works for me. https://github.com/looooo/FreeCAD/commit/b9bd78c135f0044c4cdf6970d11270b09b13a357 So my suggestion is: 1. if a C++ python module gets extended with python code (eg. Part.so) rename it to _Part.so and import everyth...
by looo
Mon Jan 04, 2016 10:53 pm
Forum: Python scripting and macros
Topic: Python object attributes lost at load
Replies: 8
Views: 4221

Re: Python object attributes lost at load

I had similar issues with the glider workbench. Checking for the alphabetical last property works for me. But checking the State maybe the better solution.

Code: Select all

if hasattr(fp, "ZLength"):

Code: Select all

if "Restore" in fp.State:
by looo
Mon Jan 04, 2016 8:16 pm
Forum: Python scripting and macros
Topic: Why doesn't freecad modules look like normal python modules?
Replies: 26
Views: 4260

Re: Why doesn't freecad modules look like normal python modules?

Thanks for this detailed answer. 2. The Init.py and InitGui.py files are not supposed to work like an __init__.py file. These are files that get executed at startup and registers certain information (e.g. in Init.py to register supported file extension) in the core system. These files are not suppos...
by looo
Mon Jan 04, 2016 12:12 pm
Forum: Python scripting and macros
Topic: Why doesn't freecad modules look like normal python modules?
Replies: 26
Views: 4260

Re: Why doesn't freecad modules look like normal python modules?

Any news on this? Should I create a pull request?
by looo
Sat Jan 02, 2016 3:51 pm
Forum: Developers corner
Topic: Some Qt5 transition teasers
Replies: 61
Views: 9219

Re: Some Qt5 transition teasers

Wow :o
by looo
Fri Dec 18, 2015 4:33 pm
Forum: Python scripting and macros
Topic: Why doesn't freecad modules look like normal python modules?
Replies: 26
Views: 4260

Re: Why doesn't freecad modules look like normal python modules?

So finally it is working for the Part Module. https://github.com/looooo/FreeCAD/commit/f6c0fc3e0f25a7b27d8e188bfcdfe4debcbe6704 There aren't many things to change. I think it won't change anything to the current system but if we apply this to all modules, we are able to import modules without adding...
by looo
Fri Dec 18, 2015 3:31 pm
Forum: Users Showcase
Topic: glider workbench
Replies: 88
Views: 24084

Re: glider workbench

I have added the requested change.
by looo
Thu Dec 17, 2015 1:12 pm
Forum: Python scripting and macros
Topic: Why doesn't freecad modules look like normal python modules?
Replies: 26
Views: 4260

Re: Why doesn't freecad modules look like normal python modules?

I would like to try my proposed minimal solution. But I experience c++ difficulties. Can any c++ guru help me with renaming the shared objects? I have changed in cMake/FreeCADMacros.cMake the prefix in the Macro SET_PYTHON_PREFIX_SUFFIX to "_". After this I renamed the " initPart" Funktion iside of ...
by looo
Wed Dec 16, 2015 4:30 pm
Forum: Users Showcase
Topic: glider workbench
Replies: 88
Views: 24084

Re: glider workbench

thanks for your efforts. import freecad_glider cannot work inside the same directory, to get the path In my case it is working because I have the freecad_glider directory inside of /usr/lib/freecad/Mod which is in my case part of the sys.path. but I will change this soon. As I have already said in a...
by looo
Mon Dec 14, 2015 6:38 pm
Forum: Developers corner
Topic: Build Pivy for windows
Replies: 9
Views: 2000

Re: Build Pivy for windows

I think you have already seen this: http://www.freecadweb.org/wiki/index.ph ... dules#Pivy
It would be helpful if you post the errors.

Go to advanced search