From 223a2b196bdf87dab7c8b78545077bd6ea8cdeff Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 23 Jan 2018 06:39:38 +0100 Subject: [PATCH] FEM: beam rotation, add some pre checks --- src/Mod/Fem/femtools/ccxtools.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mod/Fem/femtools/ccxtools.py b/src/Mod/Fem/femtools/ccxtools.py index db41c4abaa..29aa7ec3f0 100644 --- a/src/Mod/Fem/femtools/ccxtools.py +++ b/src/Mod/Fem/femtools/ccxtools.py @@ -433,6 +433,11 @@ class FemToolsCcx(QtCore.QRunnable, QtCore.QObject): message += "Beam sections defined but FEM mesh has volume or shell elements.\n" if self.mesh.FemMesh.EdgeCount == 0: message += "Beam sections defined but FEM mesh has no edge elements.\n" + if len(self.beam_rotations) > 1: + message += "Multiple beam rotations in one analysis are not supported at the moment.\n" + # beam rotations + if self.beam_rotations and not self.beam_sections: + message += "Beam rotations in the analysis but no beam sections defined.\n" # shell thickness if self.shell_thicknesses: has_no_references = False