Remove unused modules and variables

This commit is contained in:
benj5378
2022-01-24 22:10:28 +01:00
committed by WandererFan
parent e7378a9179
commit e8d7973982
8 changed files with 30 additions and 54 deletions

View File

@@ -7,9 +7,6 @@
from __future__ import print_function
import FreeCAD
import Part
import Measure
import TechDraw
import os
@@ -37,7 +34,7 @@ def DHatchTest():
#make Views
view1 = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewPart','View')
FreeCAD.ActiveDocument.View.Source = [box]
rc = page.addView(view1)
page.addView(view1)
FreeCAD.ActiveDocument.recompute()
#make hatch
@@ -46,7 +43,7 @@ def DHatchTest():
hatch.Source = (view1,["Face0"])
hatch.HatchPattern = hatchFileSpec #comment out to use default from preferences
print("adding hatch to page")
rc = page.addView(hatch)
page.addView(hatch)
print("finished hatch")
FreeCAD.ActiveDocument.recompute()