diff --git a/a2p_MuxAssembly.py b/a2p_MuxAssembly.py index 2f1c1a9b..65dd1a67 100644 --- a/a2p_MuxAssembly.py +++ b/a2p_MuxAssembly.py @@ -138,7 +138,11 @@ def muxAssemblyWithTopoNames(doc, withColor=False): faceColors.append(diffuseCol[i]) shell = Part.makeShell(faces) - solid = Part.Solid(shell) + try: + solid = Part.Solid(shell) + except: + # keeping a shell if solid is failing + solid = shell if withColor: return muxInfo, solid, faceColors else: diff --git a/a2p_topomapper.py b/a2p_topomapper.py index 0117e406..a5b0be16 100644 --- a/a2p_topomapper.py +++ b/a2p_topomapper.py @@ -500,7 +500,11 @@ def createTopoNames(self,withColor=False): faceColors.append(diffuseCol[i]) shell = Part.makeShell(faces) - solid = Part.Solid(shell) + try: + solid = Part.Solid(shell) + except: + # keeping a shell if solid is failing + solid = shell #------------------------------------------- # if toponaming is used, assign toponames to # shells geometry