diff --git a/model/horizontal.py b/model/horizontal.py index ae229df5..90f7fed0 100644 --- a/model/horizontal.py +++ b/model/horizontal.py @@ -37,6 +37,8 @@ def needs_wp(self): def create_slvs_data(self, solvesys): wp = self.get_workplane() + if self.entity2: + return solvesys.horizontal(self.entity1.py_data, wp, self.entity2.py_data) return solvesys.horizontal(self.entity1.py_data, wp) def placements(self): diff --git a/model/vertical.py b/model/vertical.py index 2cf76515..51e41a2d 100644 --- a/model/vertical.py +++ b/model/vertical.py @@ -36,6 +36,8 @@ def needs_wp(self): def create_slvs_data(self, solvesys): wp = self.get_workplane() + if self.entity2: + return solvesys.vertical(self.entity1.py_data, wp, self.entity2.py_data) return solvesys.vertical(self.entity1.py_data, wp) def placements(self):