Draft: Replace Drawing functions with TechDraw functions

This commit is contained in:
marioalexis
2022-02-20 16:09:28 -03:00
parent 7200915317
commit 3f67ee78f7
5 changed files with 13 additions and 29 deletions

View File

@@ -140,9 +140,9 @@ class Shape2DView(DraftObject):
def getProjected(self,obj,shape,direction):
"returns projected edges from a shape and a direction"
import Part, Drawing, DraftGeomUtils
import Part, TechDraw, DraftGeomUtils
edges = []
_groups = Drawing.projectEx(shape, direction)
_groups = TechDraw.projectEx(shape, direction)
for g in _groups[0:5]:
if g:
edges.append(g)
@@ -210,7 +210,7 @@ class Shape2DView(DraftObject):
onlysolids = obj.Base.OnlySolids
if hasattr(obj,"OnlySolids"): # override base object
onlysolids = obj.OnlySolids
import Arch, Part, Drawing
import Arch
objs = groups.get_group_contents(objs, walls=True)
if getattr(obj,"VisibleOnly",True):
objs = gui_utils.remove_hidden(objs)