Draft: fixed DXF export - fixes #2761
This commit is contained in:
parent
569f5c77f9
commit
c5911b660a
|
@ -1954,7 +1954,7 @@ def exportPage(page,filename):
|
||||||
f.write(template)
|
f.write(template)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
def getBlock(geom,view,blockcount):
|
def getViewBlock(geom,view,blockcount):
|
||||||
insert = ""
|
insert = ""
|
||||||
block = ""
|
block = ""
|
||||||
r = view.Rotation
|
r = view.Rotation
|
||||||
|
@ -1992,16 +1992,16 @@ def getViewDXF(view,blocks=True):
|
||||||
elif view.isDerivedFrom("Drawing::FeatureViewPython"):
|
elif view.isDerivedFrom("Drawing::FeatureViewPython"):
|
||||||
if hasattr(view.Proxy,"getDXF"):
|
if hasattr(view.Proxy,"getDXF"):
|
||||||
geom = view.Proxy.getDXF(view)
|
geom = view.Proxy.getDXF(view)
|
||||||
block,insert,blockcount = getBlock(geom,view,blockcount)
|
block,insert,blockcount = getViewBlock(geom,view,blockcount)
|
||||||
|
|
||||||
elif view.isDerivedFrom("TechDraw::DrawViewDraft"):
|
elif view.isDerivedFrom("TechDraw::DrawViewDraft"):
|
||||||
geom = Draft.getDXF(view)
|
geom = Draft.getDXF(view)
|
||||||
block,insert,blockcount = getBlock(geom,view,blockcount)
|
block,insert,blockcount = getViewBlock(geom,view,blockcount)
|
||||||
|
|
||||||
elif view.isDerivedFrom("TechDraw::DrawViewArch"):
|
elif view.isDerivedFrom("TechDraw::DrawViewArch"):
|
||||||
import ArchSectionPlane
|
import ArchSectionPlane
|
||||||
geom = ArchSectionPlane.getDXF(view)
|
geom = ArchSectionPlane.getDXF(view)
|
||||||
block,insert,blockcount = getBlock(geom,view,blockcount)
|
block,insert,blockcount = getViewBlock(geom,view,blockcount)
|
||||||
|
|
||||||
elif view.isDerivedFrom("Drawing::FeatureViewPart"):
|
elif view.isDerivedFrom("Drawing::FeatureViewPart"):
|
||||||
r = view.Rotation
|
r = view.Rotation
|
||||||
|
|
Loading…
Reference in New Issue
Block a user