Skip to content

Commit

Permalink
Arch: Fixed error in DXF export of Arch Panel sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed May 20, 2017
1 parent 945313c commit 08b7d91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Arch/ArchPanel.py
Expand Up @@ -948,6 +948,8 @@ def __init__(self, obj):

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
Expand Down
10 changes: 6 additions & 4 deletions src/Mod/Draft/importDXF.py
Expand Up @@ -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)
Expand Down

0 comments on commit 08b7d91

Please sign in to comment.