Assembly: Introduce core functionality of assembly workbench.
This commit is contained in:
@@ -56,10 +56,10 @@ class CommandCreateAssembly:
|
||||
|
||||
def Activated(self):
|
||||
App.setActiveTransaction("Create assembly")
|
||||
assembly = App.ActiveDocument.addObject("App::Part", "Assembly")
|
||||
assembly = App.ActiveDocument.addObject("Assembly::AssemblyObject", "Assembly")
|
||||
assembly.Type = "Assembly"
|
||||
Gui.ActiveDocument.ActiveView.setActiveObject("part", assembly)
|
||||
assembly.newObject("App::DocumentObjectGroup", "Joints")
|
||||
assembly.newObject("Assembly::JointGroup", "Joints")
|
||||
App.closeActiveTransaction()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user