[last updated: 2022-11-07]
go to: FreeCAD
(go to:) Python Macros:
(link to:) FreeCAD - Python tutorial
(link to:) FreeCAD - scripting examples
https://wiki.freecadweb.org/Python_console FreeCAD console
-----
This page very incomplete ...
- If you open FreeCAD to its Start page:
- first set preferences and views so that the python console is visible.
Then you can type python commands directly into the console to be executetd.
- If you type this command:
>>> doc = FreeCAD.newDocument()
then you will create a new drawing document with an internal variable name of "doc"
(however the actual FC drawing will be "Unnamed.")
-
- exec(open("/home/user1/Desktop/tests/Test1.py").read())
- ???
FreeCADcmd.exe myScript.py
-or: freecadcmd myScript.py
- $ freecad-python3 - P stp2 dae.py
- If you want to operate on an existing drawing, you must find the object names of the objects you want to manipulate
- Other links:
.
.
.
eof