Hi,
i run FreeCAD succesfully on windows via python after I appended the /bin folder to the sys path.
I can then import FreeCAD
But it does not work with
import importDAE
or even the numpy module. Do I need to append additional paths?
Search found 34 matches
- Fri Sep 23, 2022 2:24 pm
- Forum: Python scripting and macros
- Topic: import numpy or import importDAE
- Replies: 7
- Views: 1154
- Fri Mar 10, 2017 10:08 am
- Forum: FEM
- Topic: Contstraints for med file (code aster) . shape names in med
- Replies: 6
- Views: 2349
Re: Contstraints for med file (code aster) . shape names in med
STEP: https://www.dropbox.com/s/cl97ptcka2xgn3f/gn_297-17_5-k6.stp?dl=0 MED generated by salome: https://www.dropbox.com/s/886duwv7xc92ljg/gn_297-17_5-k6.med?dl=0 As far as I understand: Salome uses Smesh for meshing which has interfaces to netgen. FreeCAD also uses Smesh in the FEM modul (has nothi...
- Thu Mar 09, 2017 10:53 pm
- Forum: FEM
- Topic: Contstraints for med file (code aster) . shape names in med
- Replies: 6
- Views: 2349
Re: Contstraints for med file (code aster) . shape names in med
...What you can export to med and what will be written into the med are groups of mesh faces or groups of mesh nodes or groups of mesh volumes. These groups have names and you can set this name and it will be exported into med.... In FreeCAD FEM a geometry is modeled, all constraints are set on the...
- Thu Mar 09, 2017 10:03 pm
- Forum: FEM
- Topic: Contstraints for med file (code aster) . shape names in med
- Replies: 6
- Views: 2349
Contstraints for med file (code aster) . shape names in med
Hi, I come from salome/salome_meca (salome+code_aster) and want to test the FreeCAD FEM features. I work with code_aster for now with med files and set the constraints in salome. How can I get the face/shape names in FreeCAD. Are these also exported to med? does the netgen mesher in FreeCAD also gen...
- Thu Aug 27, 2015 4:53 pm
- Forum: Python scripting and macros
- Topic: FreeCAD_0.16.5354_x86 - export to wrl via external python
- Replies: 1
- Views: 634
Re: FreeCAD_0.16.5354_x86 - export to wrl via external python
...i was to fast. with the latest 0.16.5363 it works
- Thu Aug 27, 2015 4:35 pm
- Forum: Python scripting and macros
- Topic: FreeCAD_0.16.5354_x86 - export to wrl via external python
- Replies: 1
- Views: 634
FreeCAD_0.16.5354_x86 - export to wrl via external python
I try exporting a wrl file with the dev Version 0.16.5354_x86: FreeCADGui.export(FreeCAD.ActiveDocument.Objects, f) I only get an empty file whereas with 0.15 it works. Is there any workaround or is there a change in 0.16? Via python console in the app it works but not via external python script file.
- Tue Aug 25, 2015 11:50 am
- Forum: Python scripting and macros
- Topic: Python 3.x
- Replies: 6
- Views: 2137
Re: Python 3.x
any news on this?
I need blender (for x3d export) and freecad. Blender only works with python 3.x
I need blender (for x3d export) and freecad. Blender only works with python 3.x
- Tue Aug 25, 2015 10:06 am
- Forum: Help on using FreeCAD
- Topic: save Image fails
- Replies: 5
- Views: 5116
Re: save Image fails
setting
solved the issue for me. I don't understand but it works.
Code: Select all
DisablePBuffer Boolean false
- Tue Aug 25, 2015 9:41 am
- Forum: Help on using FreeCAD
- Topic: save Image fails
- Replies: 5
- Views: 5116
save Image fails
I try to save an image of my model (Gui.activeDocument().activeView().saveImage('D:/test.jpg',987,584,'Current')) I am getting the error: RuntimeError: Cannot save null image. I tried it with the 0.15 and 0.16 5354 32bit. It works on my local machine but not on my Windows Server. I added a parameter...
- Thu Jun 11, 2015 6:22 pm
- Forum: Python scripting and macros
- Topic: No module named FreeCAD
- Replies: 2
- Views: 1686
Re: No module named FreeCAD
I had to append my path of course:
sys.path.append(FREECADPATH)
sys.path.append(FREECADPATH)