Are you looking for help regarding FreeCAD python scripting?

Need help, or want to share a macro? Post here!
User avatar
bernd
Posts: 8468
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Are you looking for help regarding FreeCAD python scripting?

Postby bernd » Fri Nov 08, 2013 10:10 pm

Welcome here, and thanks for your interest in python scripting features of FreeCAD! Our FreeCAD-Documentation allready offers some excellent articles regarding this topic.

- Short tutorial made for who is totally new to Python.

- Python scripting tutorial and FreeCAD Scripting Basics for a brief introduction of python scripting in FreeCAD.

- Part Module, Scripting explains the basics about scripting of geometric primitives and (topological) shapes.

- Topological data scripting describes lots of methods for creating and modifying Part shapes from python.

- FreeCAD TopoShape API docu lists all attributes and methods for TopoShapes and thus for all shapes of Part Modul.



- Code snippets contains examples, pieces, chunks of FreeCAD Python code collected from the forum.

- Macros recipes contains ready to use macros to add functionality to FreeCAD.

- Scripting examples contains some more complex scripting examples.

- Scripted objects Python Features, python-scripted objects which behave exactly as any other FreeCAD objects.

- FreeCAD dialog creation chunks of FreeCAD Python for creation of dialogs.

- Module Creation to add a new modules and workbenches in FreeCAD.

- Extra python modules has listed several external python modules that can be downloaded freely.

- External python tutorials has links to good generic tutorials, not specific to FreeCAD.

- More links you will find at the Power users hub and Category:Python_Code sections of the FreeCAD-Wiki.

- In the end the FreeCAD python API documentation will give you endless informations about all kind of functions.

- In the very last end FreeCAD Python Template Modules at the source code will give you some code to start with.


have fun, bernd
suhasj123
Posts: 3
Joined: Sat Jul 15, 2017 5:43 am
Location: India
Contact:

Re: Are you looking for help regarding FreeCAD python scripting?

Postby suhasj123 » Sat Aug 12, 2017 3:48 am

Thanks for a awesome post I am new to python I simply want say thank you for the tutorial for who are new to python I haven't saw the topics but as I learn more about python surely come and visit other topics too. :) :) :)
muennemann
Posts: 1
Joined: Wed Apr 24, 2019 9:35 pm

Re: Are you looking for help regarding FreeCAD python scripting?

Postby muennemann » Wed Apr 24, 2019 9:38 pm

Hello Bernd:

Thank you for the tutorial on how to run FEA with calculix and Python. In my version of FreeCAD, we have fea.run() rather than fea.ccx_run().

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)

---
Frank[bug][/bug]
User avatar
bernd
Posts: 8468
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Are you looking for help regarding FreeCAD python scripting?

Postby bernd » Wed May 01, 2019 4:50 pm

your version is outdated! Use 0.18.1 or even better 0.19 if you work with FEM.