Skip to content

Commit

Permalink
Arch: place buildingparts at WP origin upon creation
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Dec 12, 2019
1 parent 39ee165 commit 5c9b117
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/Arch/ArchBuildingPart.py
Expand Up @@ -310,6 +310,7 @@ def Activated(self):
FreeCADGui.addModule("Arch")
FreeCADGui.doCommand("obj = Arch.makeBuildingPart("+ss+")")
FreeCADGui.addModule("Draft")
FreeCADGui.doCommand("obj.Placement = FreeCAD.DraftWorkingPlane.getPlacement()")
FreeCADGui.doCommand("Draft.autogroup(obj)")
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()
Expand Down

0 comments on commit 5c9b117

Please sign in to comment.