assembly: fix support of draft LinkArray

Fixes #58
This commit is contained in:
Zheng, Lei 2018-09-26 16:03:08 +08:00
parent 19ef857d84
commit cb84709871

View File

@ -873,6 +873,7 @@ def getElementInfo(parent,subname,
if not part: if not part:
raise RuntimeError('Invalid sub-object {}, {}'.format( raise RuntimeError('Invalid sub-object {}, {}'.format(
objName(parent), subnameRef)) objName(parent), subnameRef))
partSaved = part
transformShape = True if shape else False transformShape = True if shape else False
@ -941,6 +942,7 @@ def getElementInfo(parent,subname,
partName = '{}.{}.'.format(part[0].Name,idx) partName = '{}.{}.'.format(part[0].Name,idx)
if not obj: if not obj:
part = partSaved
# Here means, either the 'part' is an assembly or it is a non array # 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. We trim the subname reference to be relative to the part
# object. And obtain the shape before part's Placement by setting # object. And obtain the shape before part's Placement by setting