-# Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+# Copyright (C) 2014-2020 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
aPartFeature = PartSetAPI.PartSetAPI_Part(self.partSet.currentFeature(True))
aPartsList["Part_{}".format(aPartIndex+1)] = aPartFeature
+ self.session.startOperation()
+ self.session.setActiveDocument(self.partSet)
+ self.session.finishOperation()
+
# check reference data
exec(open(self.reffile, "rb").read(), globals(), aPartsList)