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:

View File

@@ -194,7 +194,8 @@ def insert(filename,docname,skip=[]):
obj = baseobj
if obj:
sh = baseobj.Shape.ShapeType if hasattr(baseobj,"Shape") else "None"
if DEBUG: print "creating object ",pid," : ",ptype, " with shape: ",sh
sols = str(baseobj.Shape.Solids) if hasattr(baseobj,"Shape") else ""
if DEBUG: print "creating object ",pid," : ",ptype, " with shape: ",sh," ",sols
objects[pid] = obj
# subtractions