How to run python script with ccx

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
Icyblue
Posts: 1
Joined: Thu May 16, 2019 2:20 pm

How to run python script with ccx

Post by Icyblue »

Hello everybody,
I'm new to FreeCAD,especially python.I want to run a FEM with complex model by a bat.So I use a simple example to have a try.The example is from:
https://www.freecadweb.org/wiki/FEM_Tut ... e_analysis
I changed it a little to output a .FCStd file.
I can run it in Macro perfectly.But when I used cmd "FreeCAD.exe -c" to run it,nothing happened except a .pyc file.I tried again find that a python script without gui can run with cmd successfully.I want to know how to run a python script with gui, due to I cannot run ccx without gui.
Is there something I miss? I need help,thank you very much.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: How to run python script with ccx

Post by Kunda1 »

Moved post to FEM subforum
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: How to run python script with ccx

Post by Kunda1 »

Icyblue wrote: Fri May 17, 2019 1:12 am Hello everybody,
I'm new to FreeCAD,especially python.
Welcome to the FreeCAD forum, @Icyblue. Please acquaint yourself with the Forum Guidelines and Code of Conduct

Whenever you post for help on the forum please always add your Help > About FreeCAD > Copy to clipboard info so we know what version and dependencies you are utilizing. In regards to FEM please make sure to either be using FreeCAD v0.18.x or even better (because FEM is under heavy development) utilizing the 0.19_pre (development) build.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: How to run python script with ccx

Post by bernd »

In addition to kunda .... I you would add a small example script you would like to run it would be much easier to help.
Post Reply