-# Copyright (C) 2019-2020 CEA/DEN, EDF R&D
+# Copyright (C) 2019-2022 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
model.end()
-filename = 'check_export.shaperpart'
-model.removeFile(filename)
+filename = model.getTmpFileName('check_export', '.shaperpart')
+model.removeTmpFile(filename)
featureToExport = Sketch_1
model.importPart(Part_1_doc, filename)
model.end()
+model.removeTmpFile(filename)
+
# compare results with the reference data
TOLERANCE = 1.e-7
features = Part_1_doc.allFeatures()