From ac483c686b126e22b0c3212f5119a97d468962fe Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 29 Jan 2018 17:11:15 +0800 Subject: [PATCH] utils: refine draft wire identification --- utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 5f948f2..933125f 100644 --- a/utils.py +++ b/utils.py @@ -129,7 +129,11 @@ def getElementShape(obj,tp): def isDraftWire(obj): proxy = getattr(obj,'Proxy',None) - if isinstance(proxy,Draft._Wire) and not obj.Subdivisions: + if isinstance(proxy,Draft._Wire) and \ + not obj.Subdivisions and \ + not obj.Base and \ + not obj.Tool and \ + obj.Points: return obj def isDraftCircle(obj):