Arch: Fixed error in DXF export of Arch Panel sheets

This commit is contained in:
Yorik van Havre
2017-05-20 12:24:08 -03:00
parent 945313c6d3
commit 08b7d9154a
2 changed files with 8 additions and 4 deletions

View File

@@ -948,6 +948,8 @@ class PanelSheet(Draft._DraftObject):
def execute(self, obj):
import Part
self.sheettag = None
self.sheetborder = None
pl = obj.Placement
if obj.Width.Value and obj.Height.Value:
l2 = obj.Width.Value/2

View File

@@ -1898,11 +1898,13 @@ def export(objectslist,filename,nospline=False,lwPoly=False):
if not hasattr(ob.Proxy,"sheetborder"):
ob.Proxy.execute(ob)
sb = ob.Proxy.sheetborder
sb.Placement = ob.Placement
if sb:
sb.Placement = ob.Placement
writeShape(sb,ob,dxf,nospline,lwPoly,layer="Sheets",color=1)
ss = ob.Proxy.sheettag
ss.Placement = ob.Placement.multiply(ss.Placement)
writeShape(sb,ob,dxf,nospline,lwPoly,layer="Sheets",color=1)
writeShape(ss,ob,dxf,nospline,lwPoly,layer="SheetTags",color=1)
if ss:
ss.Placement = ob.Placement.multiply(ss.Placement)
writeShape(ss,ob,dxf,nospline,lwPoly,layer="SheetTags",color=1)
for subob in ob.Group:
if Draft.getType(subob) == "PanelCut":
writePanelCut(subob,dxf,nospline,lwPoly,parent=ob)