Draft: Setting the WorkingPlane from a quad face now also takes its x and y directions

This commit is contained in:
Yorik van Havre
2014-08-08 13:48:30 -03:00
parent 37d5012647
commit 8a24f0fe6f
5 changed files with 32 additions and 3 deletions

View File

@@ -435,6 +435,7 @@ class _CommandStructure:
else:
FreeCADGui.doCommand('s = Arch.makeStructure(length='+str(self.Length)+',width='+str(self.Width)+',height='+str(self.Height)+')')
FreeCADGui.doCommand('s.Placement.Base = '+DraftVecUtils.toString(point))
FreeCADGui.doCommand('s.Placement.Rotation=FreeCAD.DraftWorkingPlane.getRotation().Rotation')
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()
if self.continueCmd: