diff --git a/CompoundFilter2.py b/CompoundFilter2.py index 9c22c97..2fb2194 100644 --- a/CompoundFilter2.py +++ b/CompoundFilter2.py @@ -271,7 +271,7 @@ def ExplodeCompound(feature): features_created = [] for i in range(0, len(sh.childShapes(False,False))): cf = makeCompoundFilter(name = 'child') - cf.Label = u'Child' + unicode(i) + cf.Label = u'Child' + str(i) cf.Base = feature cf.FilterType = 'specific items' cf.items = str(i) diff --git a/lattice2ArrayFilter.py b/lattice2ArrayFilter.py index 72b8c74..67bd748 100644 --- a/lattice2ArrayFilter.py +++ b/lattice2ArrayFilter.py @@ -312,7 +312,7 @@ def ExplodeArray(feature): features_created = [] for i in range(len(plms)): af = makeArrayFilter(name = 'Placment') - af.Label = u'Placement' + unicode(i) + af.Label = u'Placement' + str(i) af.Base = feature af.FilterType = 'specific items' af.items = str(i) diff --git a/lattice2SubLink.py b/lattice2SubLink.py index f9eef85..cc3b77b 100644 --- a/lattice2SubLink.py +++ b/lattice2SubLink.py @@ -239,7 +239,7 @@ def CreateSubLink(object, subnames, looping): if looping != 'Single': name = object.Name+"_"+"Elements" FreeCADGui.doCommand("f = lattice2SubLink.makeSubLink(name = "+repr(name)+")") - label = unicode(subnames[0] if len(subnames)==1 else "subelements") + u" of " + object.Label + label = (subnames[0] if len(subnames)==1 else "subelements") + u" of " + object.Label FreeCADGui.doCommand("f.Label = "+repr(label)) FreeCADGui.doCommand("f.Object = App.ActiveDocument."+object.Name) FreeCADGui.doCommand("f.SubNames = "+repr(subnames))