FEM: Typos

This commit is contained in:
luz.paz
2018-10-11 11:10:31 +02:00
committed by wmayer
parent 73fd1b5063
commit 892c64823f
6 changed files with 21 additions and 19 deletions

View File

@@ -252,7 +252,7 @@ class GeometryElementsSelection(QtGui.QWidget):
self._helpTextLbl.setText(self.tr(
"Click on \"Add\" and select geometric elements to add them to the list."
" If no geometry is added to the list, all remaining ones are used."
" The following geometry elemets are allowed to select: ") + self.sel_elem_text)
" The following geometry elements are allowed to select: ") + self.sel_elem_text)
# list
self.list_References = QtGui.QListWidget()
# radiobutton down the list
@@ -324,8 +324,8 @@ class GeometryElementsSelection(QtGui.QWidget):
FreeCADGui.Selection.clearSelection()
if ref[1].startswith('Solid') and (ref[0].Shape.ShapeType == 'Compound' or ref[0].Shape.ShapeType == 'CompSolid'):
# selection of Solids of Compounds or CompSolids is not possible, because a Solid is no Subelement
# since only Subelements can be selected, we gone select all Faces of such an Solids
solid = FemMeshTools.get_element(ref[0], ref[1]) # the method getElement(element) does not return Solid elements
# since only Subelements can be selected, we're going to select all Faces of said Solids
solid = FemMeshTools.get_element(ref[0], ref[1]) # the method getElement(element) doesn't return Solid elements
if not solid:
return
faces = []
@@ -437,7 +437,7 @@ class GeometryElementsSelection(QtGui.QWidget):
if solid_to_add:
selection = (selection[0], 'Solid' + solid_to_add)
ele_ShapeType = 'Solid'
FreeCAD.Console.PrintMessage('selection variable adaped to hold the Solid: ' + selection[0].Shape.ShapeType + ' ' + selection[0].Name + ' ' + selection[1] + ' \n')
FreeCAD.Console.PrintMessage('selection variable adapted to hold the Solid: ' + selection[0].Shape.ShapeType + ' ' + selection[0].Name + ' ' + selection[1] + ' \n')
else:
return
if ele_ShapeType in self.sel_elem_types:

View File

@@ -153,7 +153,8 @@ class _TaskPanelFemMaterial:
self.card_path = self.get_material_card(self.material)
print('card_path: ' + self.card_path)
if not self.card_path:
# we have not found our material in self.materials dict :-(, we gone add a user defined temporary material, a document material
# we have not found our material in self.materials dict :-(
# we're going to add a user-defined temporary material: a document material
FreeCAD.Console.PrintMessage("Previously used material card cannot be found in material directories. Add document material.\n")
self.card_path = '_document_material'
self.materials[self.card_path] = self.material
@@ -228,7 +229,7 @@ class _TaskPanelFemMaterial:
def set_transient_material(self):
self.card_path = '_transient_material'
self.materials[self.card_path] = self.material # = the crurrent input fields data
self.materials[self.card_path] = self.material # = the current input fields data
index = self.parameterWidget.cb_materials.findData(self.card_path)
self.choose_material(index)