From 52b80f44b6bf364c4ae5d1baccad99c4dfe2fc91 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Wed, 16 May 2018 19:01:58 +0300 Subject: [PATCH] PartDesign: recognize arrays behind Shapebinders and PoM Ghosts --- lattice2BaseFeature.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lattice2BaseFeature.py b/lattice2BaseFeature.py index 04d7ce8..0b3bc65 100644 --- a/lattice2BaseFeature.py +++ b/lattice2BaseFeature.py @@ -86,6 +86,11 @@ def isObjectLattice(documentObject): if hasattr(documentObject,"isLattice"): if 'On' in documentObject.isLattice: ret = True + if documentObject.isDerivedFrom('PartDesign::ShapeBinder'): + if len(documentObject.Support) == 1 and documentObject.Support[0][1] == ('',): + ret = isObjectLattice(documentObject.Support[0][0]) + if hasattr(documentObject, 'IAm') and documentObject.IAm == 'PartOMagic.Ghost': + ret = isObjectLattice(documentObject.Base) return ret def getMarkerSizeEstimate(ListOfPlacements):