From cb84709871a7b0aac16545e88f14f9e0eff59ea0 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Wed, 26 Sep 2018 16:03:08 +0800 Subject: [PATCH] assembly: fix support of draft LinkArray Fixes #58 --- assembly.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assembly.py b/assembly.py index ad67af8..7ca6071 100644 --- a/assembly.py +++ b/assembly.py @@ -873,6 +873,7 @@ def getElementInfo(parent,subname, if not part: raise RuntimeError('Invalid sub-object {}, {}'.format( objName(parent), subnameRef)) + partSaved = part transformShape = True if shape else False @@ -941,6 +942,7 @@ def getElementInfo(parent,subname, partName = '{}.{}.'.format(part[0].Name,idx) if not obj: + part = partSaved # Here means, either the 'part' is an assembly or it is a non array # object. We trim the subname reference to be relative to the part # object. And obtain the shape before part's Placement by setting