Draft: Setting the WorkingPlane from a quad face now also takes its x and y directions
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user