From 6cc97c660afc67f42158ddc9f9c6b5a3ac27ac97 Mon Sep 17 00:00:00 2001
From: deepa-chaudhari
Date: Thu, 16 Jul 2015 15:54:59 +0530
Subject: Error handling
---
Connections/Shear/Finplate/fin.log | 333 +++++++++++++++++++++++++++++
Connections/Shear/Finplate/finPlate.ui | 47 +++-
Connections/Shear/Finplate/finPlateMain.py | 22 +-
Connections/Shear/Finplate/ui_finPlate.py | 22 +-
saveINPUT.txt | 8 +-
5 files changed, 412 insertions(+), 20 deletions(-)
diff --git a/Connections/Shear/Finplate/fin.log b/Connections/Shear/Finplate/fin.log
index 34c6949..90b7ae9 100644
--- a/Connections/Shear/Finplate/fin.log
+++ b/Connections/Shear/Finplate/fin.log
@@ -7475,3 +7475,336 @@
DEBUG
:=========End Of design===========
+
+
+ Thu, 16 Jul 2015 12:39:25
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 12:39:25
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 12:39:25
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 12:39:25
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 12:40:11
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 12:40:11
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 12:40:12
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 12:40:12
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 14:18:39
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 14:18:39
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 14:18:39
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 14:18:39
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:11:43
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:11:43
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:11:43
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:11:43
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:12:04
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:12:04
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:12:04
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:12:04
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:33:48
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:33:48
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:33:48
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:33:48
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:48:15
+ ERROR
+ : Chosen web plate thickness is not sufficient
+
+
+
+ Thu, 16 Jul 2015 15:48:15
+ WARNING
+ : Minimum required thickness 8.90 mm
+
+
+
+ Thu, 16 Jul 2015 15:48:15
+ ERROR
+ : Plate height provided is less than the minimum required
+
+
+
+ Thu, 16 Jul 2015 15:48:15
+ WARNING
+ : Plate height required should be more than 320.00 mm
+
+
+
+ Thu, 16 Jul 2015 15:48:15
+ ERROR
+ : Design is not safe
+
+
+
+
+ Thu, 16 Jul 2015 15:48:15
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:48:23
+ ERROR
+ : Chosen web plate thickness is not sufficient
+
+
+
+ Thu, 16 Jul 2015 15:48:23
+ WARNING
+ : Minimum required thickness 8.90 mm
+
+
+
+ Thu, 16 Jul 2015 15:48:23
+ ERROR
+ : Plate height provided is less than the minimum required
+
+
+
+ Thu, 16 Jul 2015 15:48:23
+ WARNING
+ : Plate height required should be more than 320.00 mm
+
+
+
+ Thu, 16 Jul 2015 15:48:23
+ ERROR
+ : Design is not safe
+
+
+
+
+ Thu, 16 Jul 2015 15:48:23
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:48:36
+ ERROR
+ : Weld thickness is not sufficient
+
+
+
+ Thu, 16 Jul 2015 15:48:36
+ WARNING
+ : Minimum weld thickness is required is 4.00 mm
+
+
+
+ Thu, 16 Jul 2015 15:48:36
+ ERROR
+ : Design is not safe
+
+
+
+
+ Thu, 16 Jul 2015 15:48:36
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:48:39
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:48:39
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:48:39
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:48:39
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:48:47
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:48:47
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:48:47
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:48:47
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:52:37
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:52:37
+ DEBUG
+ :=========End Of design===========
+
+
+
+ Thu, 16 Jul 2015 15:52:37
+ INFO
+ : Overall finplate connection design is safe
+
+
+
+
+ Thu, 16 Jul 2015 15:52:37
+ DEBUG
+ :=========End Of design===========
+
diff --git a/Connections/Shear/Finplate/finPlate.ui b/Connections/Shear/Finplate/finPlate.ui
index f5a6ef2..46075b4 100644
--- a/Connections/Shear/Finplate/finPlate.ui
+++ b/Connections/Shear/Finplate/finPlate.ui
@@ -3178,11 +3178,56 @@
QComboBox { combobox-popup: 0; }
- -1
+ 0
5
+ -
+
+ Select weld thickness
+
+
+ -
+
+ 3
+
+
+ -
+
+ 4
+
+
+ -
+
+ 5
+
+
+ -
+
+ 6
+
+
+ -
+
+ 8
+
+
+ -
+
+ 10
+
+
+ -
+
+ 12
+
+
+ -
+
+ 16
+
+
diff --git a/Connections/Shear/Finplate/finPlateMain.py b/Connections/Shear/Finplate/finPlateMain.py
index 68b06fd..1d677b4 100644
--- a/Connections/Shear/Finplate/finPlateMain.py
+++ b/Connections/Shear/Finplate/finPlateMain.py
@@ -44,6 +44,10 @@ class MainController(QtGui.QMainWindow):
QtGui.QMainWindow.__init__(self)
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
+
+ self.ui.combo_Beam.addItems(get_beamcombolist())
+ self.ui.comboColSec.addItems(get_columncombolist())
+
self.ui.inputDock.setFixedSize(310,710)
self.gradeType ={'Please Select Type':'',
@@ -55,9 +59,7 @@ class MainController(QtGui.QMainWindow):
self.ui.comboConnLoc.currentIndexChanged[str].connect(self.setimage_connection)
-
- self.disableViewButtons()
- #self.retrieve_prevstate()
+ self.retrieve_prevstate()
self.ui.btnInput.clicked.connect(lambda: self.dockbtn_clicked(self.ui.inputDock))
self.ui.btnOutput.clicked.connect(lambda: self.dockbtn_clicked(self.ui.outputDock))
@@ -105,8 +107,8 @@ class MainController(QtGui.QMainWindow):
self.ui.actionView_2D_on_XY.triggered.connect(self.call_Topview)
self.ui.actionView_2D_on_YZ.triggered.connect(self.call_Sideview)
- self.ui.combo_Beam.addItems(get_beamcombolist())
- self.ui.comboColSec.addItems(get_columncombolist())
+ # self.ui.combo_Beam.addItems(get_beamcombolist())
+ # self.ui.comboColSec.addItems(get_columncombolist())
self.ui.combo_Beam.currentIndexChanged[str].connect(self.fillPlateThickCombo)
self.ui.comboColSec.currentIndexChanged[str].connect(self.populateWeldThickCombo)
self.ui.comboConnLoc.currentIndexChanged[str].connect(self.populateWeldThickCombo)
@@ -121,7 +123,7 @@ class MainController(QtGui.QMainWindow):
#self.ui.btn_Savelog.clicked.connect(self.save_log)
# Saving and Restoring the finPlate window state.
- self.retrieve_prevstate()
+ #self.retrieve_prevstate()
self.ui.btn_Reset.clicked.connect(self.resetbtn_clicked)
@@ -135,7 +137,7 @@ class MainController(QtGui.QMainWindow):
self.connectivity = None
self.fuse_model = None
-
+ self.disableViewButtons()
#self.colWebBeamWeb = self.create3DColWebBeamWeb()
# my_box = BRepPrimAPI_MakeBox(gp_Pnt(20,0,0),10., 20., 30.).Shape()
# my_cylendar = BRepPrimAPI_MakeCylinder(10,30).Shape()
@@ -243,7 +245,6 @@ class MainController(QtGui.QMainWindow):
self.ui.comboWldSize.clear()
for element in newlist[:]:
self.ui.comboWldSize.addItem(str(element))
- #self.ui.comboColSec.currentIndex(0)
def retrieve_prevstate(self):
@@ -280,9 +281,6 @@ class MainController(QtGui.QMainWindow):
self.ui.txtPlateWidth.setText(str(uiObj['Plate']['Width (mm)']))
self.ui.comboWldSize.setCurrentIndex(self.ui.comboWldSize.findText(str(uiObj['Weld']['Size (mm)'])))
- #self.ui.comboWldSize.currentText(str(uiObj['Weld']['size(mm)']))
- #else:
- # self.btnreset_clicked()
def setimage_connection(self):
'''
@@ -968,8 +966,6 @@ class MainController(QtGui.QMainWindow):
def design_btnclicked(self):
'''
'''
- designLogger = logging.getLogger("Designlogger.finPlateCalc")
-
self.ui.outputDock.setFixedSize(310,710)
self.enableViewButtons()
diff --git a/Connections/Shear/Finplate/ui_finPlate.py b/Connections/Shear/Finplate/ui_finPlate.py
index 1346fc8..4045b35 100644
--- a/Connections/Shear/Finplate/ui_finPlate.py
+++ b/Connections/Shear/Finplate/ui_finPlate.py
@@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'finPlate.ui'
#
-# Created: Thu Jul 16 11:52:39 2015
+# Created: Thu Jul 16 15:44:41 2015
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
@@ -1024,6 +1024,15 @@ class Ui_MainWindow(object):
self.comboWldSize.setStyleSheet(_fromUtf8("QComboBox { combobox-popup: 0; }"))
self.comboWldSize.setMaxVisibleItems(5)
self.comboWldSize.setObjectName(_fromUtf8("comboWldSize"))
+ self.comboWldSize.addItem(_fromUtf8(""))
+ self.comboWldSize.addItem(_fromUtf8(""))
+ self.comboWldSize.addItem(_fromUtf8(""))
+ self.comboWldSize.addItem(_fromUtf8(""))
+ self.comboWldSize.addItem(_fromUtf8(""))
+ self.comboWldSize.addItem(_fromUtf8(""))
+ self.comboWldSize.addItem(_fromUtf8(""))
+ self.comboWldSize.addItem(_fromUtf8(""))
+ self.comboWldSize.addItem(_fromUtf8(""))
self.lbl_connectivity = QtGui.QLabel(self.dockWidgetContents)
self.lbl_connectivity.setGeometry(QtCore.QRect(180, 210, 60, 50))
self.lbl_connectivity.setScaledContents(True)
@@ -1468,7 +1477,7 @@ class Ui_MainWindow(object):
self.retranslateUi(MainWindow)
self.mytabWidget.setCurrentIndex(-1)
self.comboPlateThick_2.setCurrentIndex(0)
- self.comboWldSize.setCurrentIndex(-1)
+ self.comboWldSize.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
@@ -1609,6 +1618,15 @@ class Ui_MainWindow(object):
self.btnDesign_4.setText(_translate("MainWindow", "Design", None))
self.btn_Reset.setText(_translate("MainWindow", "Reset", None))
self.btn_Design.setText(_translate("MainWindow", "Design", None))
+ self.comboWldSize.setItemText(0, _translate("MainWindow", "Select weld thickness", None))
+ self.comboWldSize.setItemText(1, _translate("MainWindow", "3", None))
+ self.comboWldSize.setItemText(2, _translate("MainWindow", "4", None))
+ self.comboWldSize.setItemText(3, _translate("MainWindow", "5", None))
+ self.comboWldSize.setItemText(4, _translate("MainWindow", "6", None))
+ self.comboWldSize.setItemText(5, _translate("MainWindow", "8", None))
+ self.comboWldSize.setItemText(6, _translate("MainWindow", "10", None))
+ self.comboWldSize.setItemText(7, _translate("MainWindow", "12", None))
+ self.comboWldSize.setItemText(8, _translate("MainWindow", "16", None))
self.label_9.setText(_translate("MainWindow", "Beam section *", None))
self.outputDock.setWindowTitle(_translate("MainWindow", "Output dock", None))
self.t_7.setText(_translate("MainWindow", "No. of bolts required", None))
diff --git a/saveINPUT.txt b/saveINPUT.txt
index aff0d1a..68aa8f6 100644
--- a/saveINPUT.txt
+++ b/saveINPUT.txt
@@ -4,7 +4,7 @@ p1
(dp2
S'ColumSection'
p3
-S'ISSC 200'
+S'ISMC 300'
p4
sS'fu (MPa)'
p5
@@ -18,7 +18,7 @@ p8
I250
sS'Connectivity'
p9
-S'Column flange-Beam web'
+S'Column web-Beam web'
p10
ssS'Plate'
p11
@@ -31,7 +31,7 @@ p14
I300
sS'Thickness (mm)'
p15
-I10
+I20
ssS'Load'
p16
(dp17
@@ -43,7 +43,7 @@ p19
(dp20
S'Size (mm)'
p21
-I0
+I6
ssS'Bolt'
p22
(dp23
--
cgit