Translations:Scripted objects/65/en

mode = vobj.SwitchNode.whichChild.getValue FreeCAD.Console.PrintWarning("getDetailPath: mode {} is active\n".format(mode)) if mode >= 0: mode = vobj.SwitchNode.getChild(mode) path.append(mode) sub = Part.splitSubname(subname)[-1] print(sub) if sub == 'Atom1': path.append(self.sel1) elif sub == 'Atom2': path.append(self.sel2) elif sub == 'Line': path.append(self.sel3) else: path.append(mode.getChild(0)) return True