freecad.org
下载437M安装占用空间2G
create new
https://wiki.freecad.org/Introduction_to_Python
view -> panels -> python console
>>> Gui.runCommand('Std_ViewStatusBar',1)
>>> Gui.runCommand('Std_ViewStatusBar',0)
>>> Gui.runCommand('Std_Workbench',19)
>>> print("hello")
>>> help("print")
>>> dir()
Gui.activateWorkbench("DraftWorkbench")
App.setActiveDocument("Unnamed")
App.ActiveDocument = App.getDocument("Unnamed")
Gui.ActiveDocument = Gui.getDocument("Unnamed")
doc = FreeCAD.newDocument()
box = doc.addObject("Part::Box", "myBox")