From fbb5b102406776066c722d3b365f0bf8be227c3e Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Fri, 3 Nov 2017 15:07:19 +0800 Subject: [PATCH] Fixed points(line) horizontal(vertical) constraint --- constraint.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/constraint.py b/constraint.py index 8188836..0e27822 100644 --- a/constraint.py +++ b/constraint.py @@ -777,26 +777,22 @@ class MidPoint(Base): class PointsHorizontal(Base): _id = 21 - _entityDef = (_p,_p) - _workplane = True + _entityDef = (_p,_p,_w) class PointsVertical(Base): _id = 22 - _entityDef = (_p,_p) - _workplane = True + _entityDef = (_p,_p,_w) class LineHorizontal(Base): _id = 23 - _entityDef = (_l,) - _workplane = True + _entityDef = (_l,_w) class LineVertical(Base): _id = 24 - _entityDef = (_l,) - _workplane = True + _entityDef = (_l,_w) class Diameter(Base):