FEM: writer base, change print from error to warning

This commit is contained in:
Bernd Hahnebach
2020-05-23 12:55:06 +02:00
parent a780c1f730
commit fbca6946d5

View File

@@ -101,15 +101,15 @@ class FemInputWriter():
elif hasattr(self.mesh_object, "Part"):
self.theshape = self.mesh_object.Part
else:
FreeCAD.Console.PrintError(
FreeCAD.Console.PrintWarning(
"A finite mesh without a link to a Shape was given. "
"Happen on pure mesh objects. Some methods might be broken.\n"
"Happen on pure mesh objects. Not all methods do work without this link.\n"
)
self.femmesh = self.mesh_object.FemMesh
else:
FreeCAD.Console.PrintError(
FreeCAD.Console.PrintWarning(
"No finite element mesh object was given to the writer class. "
"In rare cases this might not be an error. Some methods might be broken.\n"
"In rare cases this might not be an error. Not all methods do work without this link.\n"
)
self.femnodes_mesh = {}
self.femelement_table = {}