model.exportPart(partSet, filename)
model.end()
assert os.path.exists(filename), "ERROR: Failed to export full PartSet"
+
+model.removeTmpFile(filename)
model.exportPart(Part_2_doc, filename)
model.end()
assert os.path.exists(filename), "ERROR: Cannot export Part_2 to file {}".format(filename)
+
+model.removeTmpFile(filename)
model.exportPart(partSet, filename, [Axis_4.result()])
model.end()
assert os.path.exists(filename), "ERROR: Cannot export construction elements of PartSet"
+
+model.removeTmpFile(filename)
model.exportPart(partSet, filename, [featureToExport.result()])
model.end()
assert os.path.exists(filename), "ERROR: Cannot export feature {}".format(featureToExport.name())
+
+model.removeTmpFile(filename)
model.exportPart(partSet, filename, [featureToExport.result()])
model.end()
assert os.path.exists(filename), "ERROR: Cannot export feature {}".format(featureToExport.name())
+
+model.removeTmpFile(filename)
model.exportPart(Part_1_doc, filename, [featureToExport.result()])
model.end()
assert os.path.exists(filename), "ERROR: Cannot export feature {}".format(featureToExport.name())
+
+model.removeTmpFile(filename)
model.exportPart(Part_2_doc, filename, [featureToExport.result()])
model.end()
assert os.path.exists(filename), "ERROR: Cannot export feature {}".format(featureToExport.name())
+
+model.removeTmpFile(filename)
model.exportPart(Part_2_doc, filename, [featureToExport.result()])
model.end()
assert os.path.exists(filename), "ERROR: Cannot export feature {}".format(featureToExport.name())
+model.removeTmpFile(filename)
model.importPart(Part_1_doc, filename, Sketch_1)
model.end()
+model.removeTmpFile(filename)
+
# compare results with the reference data
TOLERANCE = 1.e-7
features = Part_1_doc.allFeatures()
model.importPart(Part_1_doc, filename, Extrusion_1)
model.end()
+model.removeTmpFile(filename)
+
# compare results with the reference data
TOLERANCE = 1.e-7
features = Part_1_doc.allFeatures()
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()
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()
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()
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()
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()
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()
model.importPart(partSet, filename)
model.end()
+model.removeTmpFile(filename)
+
# Test 1. No Part should be created
assert(partSet.size(ModelAPI_ResultPart.group()) == 0)
model.importPart(Part_1_doc, filename)
model.end()
+model.removeTmpFile(filename)
+
# Test 1. No Part should be created
assert(partSet.size(ModelAPI_ResultPart.group()) == 1)
model.importPart(partSet, filename)
model.end()
+model.removeTmpFile(filename)
+
# Test 1. No new Part should be created
assert(partSet.size(ModelAPI_ResultPart.group()) == 0)
model.importPart(Part_1_doc, filename)
model.end()
+model.removeTmpFile(filename)
+
# Test 1. No new Part should be created
assert(partSet.size(ModelAPI_ResultPart.group()) == 1)
model.end()
checkUniqueNames(Part_1_doc)
+model.removeTmpFile(filename)
+
assert(model.checkPythonDump())
model.importPart(Part_1_doc, filename)
model.end()
+model.removeTmpFile(filename)
+
# Test 1. No new Part should be created
assert(partSet.size(ModelAPI_ResultPart.group()) == 1)
model.importPart(partSet, filename)
model.end()
+model.removeTmpFile(filename)
+
# Test 1. New Part should be created
assert(partSet.size(ModelAPI_ResultPart.group()) == 1)
newPart = modelAPI_ResultPart(objectToResult(partSet.object(ModelAPI_ResultPart.group(), 0)))
aGeo = aPrefix + "_geo.py"
aWeak = aPrefix + "_weak.py"
isOk = checkPyDump(aNaming, aGeo, aWeak, theDumpMode)
+ removeTmpFile(aPrefix)
removeTmpFile(aNaming)
removeTmpFile(aGeo)
removeTmpFile(aWeak)