From 06f8e5ca37836708a9948fbac3adc48a8f5e2c0b Mon Sep 17 00:00:00 2001 From: NATHALIE GORE Date: Tue, 13 Aug 2019 10:55:17 +0200 Subject: [PATCH] Add workaround for compoundVertices --- src/PythonAddons/macros/compoundVertices/feature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PythonAddons/macros/compoundVertices/feature.py b/src/PythonAddons/macros/compoundVertices/feature.py index 91bc6017f..d6b5869f3 100644 --- a/src/PythonAddons/macros/compoundVertices/feature.py +++ b/src/PythonAddons/macros/compoundVertices/feature.py @@ -56,8 +56,8 @@ class compoundVertices(model.Feature): for line in file: coord = line.split(' ') x = float(coord[0]); y = float(coord[1]); z = float(coord[2]); - point = model.addPoint(part, x,y,z) - vertex = model.addVertex(part, [point.result()]) + point = model.addPoint(part, x,y,z); point.execute(True) + vertex = model.addVertex(part, [point.result()]); vertex.execute(True) lVertices.append(vertex.result()) file.close() Compound_1 = model.addCompound(part, lVertices) -- 2.39.2