-
Notifications
You must be signed in to change notification settings - Fork 67
/
Common.py
2147 lines (1796 loc) · 101 KB
/
Common.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author: Amir, Umair, Arsil
import operator
import math
from utils.common.other_standards import *
import os
PATH_TO_DATABASE = os.path.join(os.path.dirname(__file__), 'ResourceFiles', 'Database', 'Intg_osdag.sqlite')
import sqlite3
from utils.common.component import *
from utils.common.component import *
import logging
# from design_type.connection.fin_plate_connection import FinPlateConnection
# from design_type.connection.column_cover_plate import ColumnCoverPlate
class OurLog(logging.Handler):
def __init__(self, key):
logging.Handler.__init__(self)
self.key = key
# self.key.setText("<h1>Welcome to Osdag</h1>")
def handle(self, record):
msg = self.format(record)
if record.levelname == 'WARNING':
msg = "<span style='color: blue;'>"+ msg +"</span>"
elif record.levelname == 'ERROR':
msg = "<span style='color: red;'>"+ msg +"</span>"
elif record.levelname == 'INFO':
msg = "<span style='color: green;'>" + msg + "</span>"
self.key.append(msg)
def connectdb1():
"""
Function to fetch diameter values from Bolt Table
"""
# @author: Amir
lst = []
conn = sqlite3.connect(PATH_TO_DATABASE)
cursor = conn.execute("SELECT Bolt_diameter FROM Bolt")
rows = cursor.fetchall()
for row in rows:
lst.append(row)
l2 = tuple_to_str_popup(lst)
return l2
def connectdb2():
"""
Function to fetch diameter values from Bolt Table
"""
# @author: Amir
lst = []
conn = sqlite3.connect(PATH_TO_DATABASE)
cursor = conn.execute("SELECT Diameter FROM Anchor_Bolt")
rows = cursor.fetchall()
for row in rows:
lst.append(row)
l2 = tuple_to_str_popup(lst)
return l2
def connectdb(table_name, call_type="dropdown"):
"""
Function to fetch designation values from respective Tables.
"""
# @author: Amir
conn = sqlite3.connect(PATH_TO_DATABASE)
lst = []
if table_name == "Angles":
cursor = conn.execute("SELECT Designation FROM Angles")
elif table_name == "Channels":
cursor = conn.execute("SELECT Designation FROM Channels")
elif table_name == "Beams":
cursor = conn.execute("SELECT Designation FROM Beams")
elif table_name == "Bolt":
cursor = conn.execute("SELECT Bolt_diameter FROM Bolt")
elif table_name == "Material":
cursor = conn.execute("SELECT Grade FROM Material")
elif table_name == "RHS":
cursor = conn.execute("SELECT Designation FROM RHS")
elif table_name == "SHS":
cursor = conn.execute("SELECT Designation FROM SHS")
elif table_name == "CHS":
cursor = conn.execute("SELECT Designation FROM CHS")
else:
cursor = conn.execute("SELECT Designation FROM Columns")
rows = cursor.fetchall()
for row in rows:
lst.append(row)
final_lst = tuple_to_str(lst,call_type,table_name)
if table_name == "Material" and call_type == "dropdown":
final_lst.append("Custom")
return final_lst
def connect_for_red(table_name):
"""
Function to fetch designation values from various Tables where source is IS808_Old
"""
# @author: Arsil
conn = sqlite3.connect(PATH_TO_DATABASE)
lst = []
if table_name == "Angles":
cursor = conn.execute("SELECT Designation FROM Angles WHERE Source = 'IS808_Old'")
elif table_name == "Channels":
cursor = conn.execute("SELECT Designation FROM Channels WHERE Source = 'IS808_Old'")
elif table_name == "Beams":
cursor = conn.execute("SELECT Designation FROM Beams WHERE Source = 'IS808_Old'")
elif table_name == "Columns":
cursor = conn.execute("SELECT Designation FROM Columns WHERE Source = 'IS808_Old'")
else:
return []
rows = cursor.fetchall()
for row in rows:
lst.append(row)
final_lst = tuple_to_str_red(lst)
return final_lst
def red_list_function():
"""
Function to form a list for old values from Columns and Beams table.
"""
# @author: Arsil
red_list = []
red_list_columns = connect_for_red("Columns")
red_list_beams = connect_for_red("Beams")
red_list.extend(red_list_beams)
red_list.extend(red_list_columns)
return red_list
def tuple_to_str_popup(tl):
# @author: Amir
arr = []
for v in tl:
val = ''.join(v)
arr.append(val)
return arr
def tuple_to_str(tl, call_type,table_name=None):
if call_type is "dropdown" and table_name != 'Material' and table_name != 'Bolt':
arr = ['Select Section']
else:
arr = []
for v in tl:
val = ''.join(v)
arr.append(val)
return arr
def tuple_to_str_red(tl):
arr = []
for v in tl:
val = ''.join(v)
arr.append(val)
return arr
def get_db_header(table_name):
conn = sqlite3.connect(PATH_TO_DATABASE)
if table_name == "Angles":
cursor = conn.execute("SELECT * FROM Angles")
elif table_name == "Channels":
cursor = conn.execute("SELECT * FROM Channels")
elif table_name == "Beams":
cursor = conn.execute("SELECT * FROM Beams")
else:
cursor = conn.execute("SELECT * FROM Columns")
header = [description[0] for description in cursor.description]
return header
def get_source(table_name, designation):
conn = sqlite3.connect(PATH_TO_DATABASE)
if table_name == "Angles":
cursor = conn.execute("SELECT Source FROM Angles WHERE Designation = ?", (designation,))
elif table_name == "Channels":
cursor = conn.execute("SELECT Source FROM Channels WHERE Designation = ?", (designation,))
elif table_name == "Beams":
cursor = conn.execute("SELECT Source FROM Beams WHERE Designation = ?", (designation,))
else:
cursor = conn.execute("SELECT Source FROM Columns WHERE Designation = ?", (designation,))
source = cursor.fetchone()[0]
return str(source)
class MaterialValidator(object):
def __init__(self, material):
self.material = str(material)
self.typ = "Unknown"
self.fy_20 = 0
self.fy_20_40 = 0
self.fy_40 = 0
self.fu = 0
self.custom_format_flag = False
self.invalid_value = ""
self.notations = ["Fy_20", "Fy_20_40", "Fy_40", "Fu"]
material = self.material.split("_")
if len(material) == 5:
self.typ = material[0]
self.fy_20 = material[1]
self.fy_20_40 = material[2]
self.fy_40 = material[3]
self.fu = material[4]
self.values = [self.fy_20, self.fy_20_40, self.fy_40, self.fu]
if self.typ == "Cus":
for i in self.values:
if str(i) != "" and str(i).isdigit():
self.custom_format_flag = True
else:
self.custom_format_flag = False
break
def is_already_in_db(self):
if self.material in connectdb("Material", call_type="popup"):
return True
else:
return False
def is_format_custom(self):
return self.custom_format_flag
def is_valid_custom(self):
min_allowed = [165, 165, 165, 165]
max_allowed = [1500, 1500, 1500, 1500]
for i in range(4):
if self.values[i] == "":
continue
if min_allowed[i] <= int(self.values[i]) <= max_allowed[i]:
pass
else:
self.invalid_value = self.notations[i]
break
if self.invalid_value:
return False
else:
return self.custom_format_flag
##########################
# Type Keys (Type of input field, tab type etc.)
###########################
TYPE_COMBOBOX = 'ComboBox'
TYPE_COMBOBOX_FREEZE = 'Disable_ComboBoc'
TYPE_TEXTBOX = 'TextBox'
TYPE_TITLE = 'Title'
TYPE_LABEL = 'Label'
TYPE_IMAGE = 'Image'
TYPE_IMAGE_COMPRESSION = 'Image_compression'
TYPE_COMBOBOX_CUSTOMIZED = 'ComboBox_Customized'
TYPE_OUT_BUTTON = 'Output_dock_Button'
TYPE_OUT_DOCK = 'Output_dock_Item'
TYPE_OUT_LABEL = 'Output_dock_Label'
TYPE_BREAK = 'Break'
TYPE_ENTER = 'Enter'
TYPE_TEXT_BROWSER = 'TextBrowser'
TYPE_NOTE = 'Note'
TYPE_WARNING = 'Warning'
DESIGN_FLAG = 'False'
VALUE_NOT_APPLICABLE = 'N/A'
TYPE_TAB_1 = "TYPE_TAB_1"
TYPE_TAB_2 = "TYPE_TAB_2"
TYPE_TAB_3 = "TYPE_TAB_3"
TYPE_SECTION = 'Popup_Section'
TYPE_CUSTOM_MATERIAL = 'New_Material_Popup'
TYPE_CUSTOM_SECTION = 'New_Section_Popup'
TYPE_ENABLE_DISABLE = 'Enable/Disable'
TYPE_CHANGE_TAB_NAME = 'Change tab_name'
TYPE_REMOVE_TAB = 'Remove tab'
TYPE_OVERWRITE_VALIDATION = 'Overwrite_validation'
KEY_IMAGE = 'Image'
TYP_BEARING = "Bearing Bolt"
TYP_FRICTION_GRIP = "Friction Grip Bolt"
###################################
# Module Keys DONOT CHANGE THESE
###################################
KEY_MAIN_MODULE = 'Main Module'
KEY_MODULE_STATUS = 'Module.Status'
TYPE_MODULE = 'Window Title'
KEY_DISP_FINPLATE = 'Fin Plate Connection'
KEY_DISP_ENDPLATE = 'End Plate Connection'
KEY_DISP_CLEATANGLE = 'Cleat Angle Connection'
KEY_DISP_SEATED_ANGLE = 'Seated Angle Connection'
KEY_DISP_BASE_PLATE = 'Base Plate Connection'
KEY_DISP_BEAMCOVERPLATE = 'Beam-to-Beam Cover Plate Bolted Connection'
KEY_DISP_COLUMNCOVERPLATE = 'Column-to-Column Cover Plate Bolted Connection'
KEY_DISP_BEAMCOVERPLATEWELD = 'Beam-to-Beam Cover Plate Welded Connection'
KEY_DISP_COLUMNCOVERPLATEWELD = 'Column-to-Column Cover Plate Welded Connection'
# KEY_DISP_BEAMENDPLATE = 'Beam End Plate Connection'
KEY_DISP_COLUMNENDPLATE = 'Column-to-Column End Plate Connection'
KEY_DISP_BCENDPLATE = 'Beam-to-Column End Plate Connection'
KEY_DISP_TENSION_BOLTED = 'Tension Member Design - Bolted to End Gusset'
KEY_DISP_TENSION_WELDED = 'Tension Member Design - Welded to End Gusset'
KEY_DISP_COMPRESSION = 'Compression Member'
KEY_DISP_BB_EP_SPLICE = 'Beam-to-Beam End Plate Connection'
DISP_TITLE_CM = 'Connecting Members'
###################################
# All Input Keys
###################################
KEY_MODULE = 'Module'
KEY_CONN = 'Connectivity'
KEY_LOCATION = 'Conn_Location'
KEY_ENDPLATE_TYPE = 'EndPlateType'
KEY_MATERIAL = 'Material'
KEY_MATERIAL_ST_SK = 'Material'
KEY_MATERIAL_FU = 'Material.Fu'
KEY_MATERIAL_FY = 'Material.Fy'
KEY_SEC_MATERIAL = 'Member.Material'
KEY_SEC_FU = 'Member.Fu' #Extra Keys
KEY_SEC_FY = 'Member.Fy' #Extra Keys
KEY_SECSIZE = 'Member.Designation'
KEY_SECSIZE_DP = 'Member.Designation_dp'
KEY_SECSIZE_SELECTED = 'Member.Designation_Selected' #Extra Keys for Display
KEY_SUPTNGSEC = 'Member.Supporting_Section.Designation'
KEY_SUPTNGSEC_MATERIAL = 'Member.Supporting_Section.Material'
KEY_A = 'Member.A'
KEY_B = 'Member.B'
KEY_SUPTDSEC_FU = 'Member.Supported_Section.Fu' #Extra Keys for DP Display
KEY_SUPTDSEC_FY = 'Member.Supported_Section.Fy' #Extra Keys for DP Display
KEY_SUPTDSEC = 'Member.Supported_Section.Designation'
KEY_SUPTDSEC_MATERIAL = 'Member.Supported_Section.Material'
KEY_SUPTNGSEC_FU = 'Member.Supporting_Section.Fu' #Extra Keys for DP Display
KEY_SUPTNGSEC_FY = 'Member.Supporting.Section.Fy' #Extra Keys for DP Display
KEY_LENGTH = 'Member.Length'
KEY_SEC_PROFILE = 'Member.Profile'
KEY_SHEAR = 'Load.Shear'
KEY_AXIAL = 'Load.Axial'
KEY_MOMENT = 'Load.Moment'
KEY_D = 'Bolt.Diameter'
KEY_TYP = 'Bolt.Type'
KEY_GRD = 'Bolt.Grade'
# KEY_DP_BOLT_MATERIAL_G_O = 'Bolt.Material_Grade_OverWrite'
KEY_DP_BOLT_HOLE_TYPE = 'Bolt.Bolt_Hole_Type'
KEY_DP_BOLT_TYPE = 'Bolt.TensionType'
KEY_DP_BOLT_SLIP_FACTOR = 'Bolt.Slip_Factor'
KEY_CONNECTOR_MATERIAL = 'Connector.Material'
KEY_CONNECTOR_FU = 'Connector.Fu' #Extra Keys for DP Display
KEY_CONNECTOR_FY = 'Connector.Fy' #Extra Keys for DP Display
KEY_CONNECTOR_FY_20 = 'Connector.Fy_20' #Extra Keys for DP Display
KEY_CONNECTOR_FY_20_40 = 'Connector.Fy_20_40' #Extra Keys for DP Display
KEY_CONNECTOR_FY_40 = 'Connector.Fy_40' #Extra Keys for DP Display
KEY_PLATETHK = 'Connector.Plate.Thickness_List'
KEY_FLANGEPLATE_PREFERENCES = 'Connector.Flange_Plate.Preferences'
KEY_FLANGEPLATE_THICKNESS = 'Connector.Flange_Plate.Thickness_list'
KEY_WEBPLATE_THICKNESS = 'Connector.Web_Plate.Thickness_List'
KEY_ANGLE_LIST='Connector.Angle_List'
KEY_ANGLE_SELECTED = 'Connector.Angle_Selected'
KEY_SEATEDANGLE = 'Connector.Seated_Angle_List'
KEY_TOPANGLE = 'Connector.Top_Angle'
KEY_DISP_ANGLE_LIST = 'Seated Angle List'
KEY_DISP_CLEAT_ANGLE_LIST = 'Cleat Angle List'
KEY_DISP_TOPANGLE_LIST = 'Top Angle List'
KEY_MOMENT_MAJOR = 'Load.Moment.Major'
KEY_MOMENT_MINOR = 'Load.Moment.Minor'
KEY_ANCHOR_OCF = 'Anchor Bolt.OCF'
KEY_DISP_ANCHOR_OCF = 'Anchor Bolt Outside Column Flange'
KEY_ANCHOR_ICF = 'Anchor Bolt.ICF'
KEY_DISP_ANCHOR_ICF = 'Anchor Bolt Inside Column Flange'
KEY_DISP_ANCHOR_GENERAL = 'General'
KEY_DIA_ANCHOR_OCF = 'Anchor Bolt.OCF.Diameter'
KEY_DIA_ANCHOR_ICF = 'Anchor Bolt.ICF.Diameter'
KEY_TYP_ANCHOR = 'Anchor Bolt.Type'
KEY_GRD_ANCHOR_OCF = 'Anchor Bolt.OCF.Grade'
KEY_GRD_ANCHOR_ICF = 'Anchor Bolt.ICF.Grade'
KEY_GRD_FOOTING = 'Footing.Grade'
KEY_DP_WELD_FAB = 'Weld.Fab'
KEY_DP_WELD_MATERIAL_G_O = 'Weld.Material_Grade_OverWrite'
KEY_DP_WELD_TYPE = 'Weld.Type'
KEY_DP_DETAILING_EDGE_TYPE = 'Detailing.Edge_type'
KEY_DP_DETAILING_GAP = 'Detailing.Gap'
KEY_DP_DETAILING_CORROSIVE_INFLUENCES = 'Detailing.Corrosive_Influences'
KEY_DP_DESIGN_METHOD = 'Design.Design_Method'
###################
# Value Keys
###################
RED_LIST = [KEY_SUPTNGSEC, KEY_SUPTDSEC, KEY_SECSIZE]
VALUES_CONN_SPLICE = ['Coplanar Tension-Compression Flange', 'Coplanar Tension Flange', 'Coplanar Compression Flange']
CONN_CFBW = 'Column Flange-Beam Web'
CONN_CWBW = 'Column Web-Beam Web'
VALUES_CONN_1 = [CONN_CFBW, CONN_CWBW]
VALUES_CONN_2 = ['Beam-Beam']
VALUES_CONN_3 = ['Flush End Plate', 'Extended Both Ways']
VALUES_CONN = VALUES_CONN_1 + VALUES_CONN_2
VALUES_ENDPLATE_TYPE = ['Flushed - Reversible Moment', 'Extended One Way - Irreversible Moment', 'Extended Both Ways - Reversible Moment']
# VALUES_CONN_BP = ['Welded Column Base', 'Welded+Bolted Column Base', 'Moment Base Plate', 'Hollow/Tubular Column Base']
VALUES_CONN_BP = ['Welded Column Base', 'Moment Base Plate', 'Hollow/Tubular Column Base']
VALUES_LOCATION = ['Select Location','Long Leg', 'Short Leg', 'Web']
# TODO: Every one is requested to use VALUES_ALL_CUSTOMIZED key instead of all other keys
VALUES_ALL_CUSTOMIZED = ['All', 'Customized']
VALUES_ENDPLATE_THICKNESS = ['All', 'Customized']
VALUES_DIA_ANCHOR = ['All', 'Customized']
VALUES_GRD_ANCHOR = ['All', 'Customized']
VALUES_D = ['All', 'Customized']
VALUES_GRD = ['All', 'Customized']
VALUES_PLATETHK = ['All', 'Customized']
VALUES_FLANGEPLATE_THICKNESS = ['All', 'Customized']
VALUES_WEBPLATE_THICKNESS = ['All', 'Customized']
VALUES_ANGLESEC= ['All', 'Customized']
ALL_WELD_SIZES = [3, 4, 5, 6, 8, 10, 12, 14, 16]
VALUES_TYP_ANCHOR = ['End Plate Type', 'IS 5624-Type A', 'IS 5624-Type B']
VALUES_GRD_FOOTING = ['Select Grade', 'M10', 'M15', 'M20', 'M25', 'M30', 'M35', 'M40', 'M45', 'M50', 'M55']
VALUES_TYP = [TYP_BEARING, TYP_FRICTION_GRIP]
TYP_FRICTION_GRIP = 'Friction Grip Bolt'
TYP_BEARING = 'Bearing Bolt'
# VALUES_GRD_CUSTOMIZED = ['3.6', '4.6', '4.8', '5.6', '5.8', '6.8', '8.8', '9.8', '10.9', '12.9']
VALUES_GRD_CUSTOMIZED = IS1367_Part3_2002.get_bolt_PC()
# standard as per IS 1730:1989
PLATE_THICKNESS_IS_1730_1989 = ['5', '6', '7', '8', '10', '12', '14', '16', '18', '20', '22', '25', '28', '32', '36', '40', '45', '50', '56', '63']
# standard as per SAIL's product brochure
PLATE_THICKNESS_SAIL = ['8', '10', '12', '14', '16', '18', '20', '22', '25', '28', '32', '36', '40', '45', '50', '56', '63', '75', '80', '90', '100',
'110', '120']
VALUES_PLATETHICKNESS_CUSTOMIZED = PLATE_THICKNESS_SAIL
VALUES_PLATETHK_CUSTOMIZED = PLATE_THICKNESS_SAIL
VALUES_ENDPLATE_THICKNESS_CUSTOMIZED = PLATE_THICKNESS_SAIL
VALUES_COLUMN_ENDPLATE_THICKNESS_CUSTOMIZED = PLATE_THICKNESS_SAIL
# TODO: delete the below list (commented) after verification
# VALUES_PLATETHK_CUSTOMIZED = ['3', '4', '5', '6', '8', '10', '12', '14', '16', '18', '20', '22', '24','25', '26', '28', '30','32','36','40','45','50','56','63','80']
# VALUES_ENDPLATE_THICKNESS_CUSTOMIZED = ['3', '4', '5', '6', '8', '10', '12', '14', '16', '18', '20', '22', '24', '26', '28', '30']
# VALUES_COLUMN_ENDPLATE_THICKNESS_CUSTOMIZED = VALUES_ENDPLATE_THICKNESS_CUSTOMIZED[3:12] + ['25','28','32','36','40','45','50','56','63','80']
VALUES_FLANGEPLATE_PREFERENCES = ['Outside','Outside + Inside']
VALUES_LOCATION_1 = ['Long Leg', 'Short Leg']
VALUES_LOCATION_2 = ["Web"]
VALUES_SECTYPE = ['Select Type','Beams','Columns','Angles','Back to Back Angles','Star Angles','Channels','Back to back Channels']
VALUES_CONNLOC_BOLT = ['Bolted','Web','Flange','Leg','Back to Back Web','Back to Back Angles','Star Angles']
VALUES_CONNLOC_WELD = ['Welded','Web','Flange','Leg','Back to Back Web','Back to Back Angles','Star Angles']
VALUES_DIAM = connectdb("Bolt")
# VALUES_DIAM = ['Select diameter','12','16','20','24','30','36']
VALUES_IMG_TENSIONBOLTED = ["ResourceFiles/images/bA.png","ResourceFiles/images/bBBA.png","ResourceFiles/images/bSA.png","ResourceFiles/images/bC.png","ResourceFiles/images/bBBC.png"]
VALUES_IMG_TENSIONWELDED = ["ResourceFiles/images/wA.png","ResourceFiles/images/wBBA.png","ResourceFiles/images/wSA.png","ResourceFiles/images/wC.png","ResourceFiles/images/wBBC.png"]
VALUES_IMG_TENSIONBOLTED_DF01 = ["ResourceFiles/images/equaldp.png","ResourceFiles/images/bblequaldp.png","ResourceFiles/images/bbsequaldp.png","ResourceFiles/images/salequaldp.png","ResourceFiles/images/sasequaldp.png"]
VALUES_IMG_TENSIONBOLTED_DF02 = ["ResourceFiles/images/unequaldp.png","ResourceFiles/images/bblunequaldp.png","ResourceFiles/images/bbsunequaldp.png","ResourceFiles/images/salunequaldp.png","ResourceFiles/images/sasunequaldp.png"]
VALUES_IMG_TENSIONBOLTED_DF03 = ["ResourceFiles/images/Slope_Channel.png","ResourceFiles/images/Parallel_Channel.png","ResourceFiles/images/Slope_BBChannel.png","ResourceFiles/images/Parallel_BBChannel.png"]
VALUES_IMG_BEAM = ["ResourceFiles/images/Slope_Beam.png","ResourceFiles/images/Parallel_Beam.png"]
VALUES_IMG_HOLLOWSECTION = ["ResourceFiles/images/SHS.png","ResourceFiles/images/RHS.png","ResourceFiles/images/CHS.png"]
VALUES_BEAMSEC = connectdb("Beams")
VALUES_SECBM = connectdb("Beams")
VALUES_COLSEC = connectdb("Columns")
VALUES_MATERIAL = connectdb("Material")
VALUES_MATERIAL_SELECTED = "E 250 (Fe 410 W)A"
VALUES_PRIBM = connectdb("Beams")
############################
# Display Keys (Input Dock, Output Dock, Design preference, Design report)
############################
KEY_DISP_SHEAR_YLD = 'Shear Yielding Capacity (kN)'
KEY_DISP_SHEAR_RUP = 'Shear Rupture Capacity (kN)'
KEY_DISP_PLATE_BLK_SHEAR_SHEAR = 'Block Shear Capacity in Shear (kN)'
KEY_DISP_PLATE_BLK_SHEAR_TENSION = 'Block Shear Capacity in Tension (kN)'
KEY_DISP_SHEAR_CAPACITY = 'Shear Capacity (kN)'
KEY_DISP_BEARING_LENGTH = 'Bearing Length'
KEY_DISP_ALLOW_SHEAR = 'Allowable Shear Capacity (kN)'
DISP_LOWSHEAR = 'Limited to low shear capacity'
KEY_DISP_BLK_SHEAR = 'Block Shear Capacity (kN)'
KEY_DISP_MOM_DEMAND = 'Moment Demand (kNm)'
KEY_DISP_MOM_CAPACITY = 'Moment Capacity (kNm)'
DISP_MIN_PITCH = 'Min. Pitch Distance (mm)'
DISP_MAX_PITCH = 'Max. Pitch Distance (mm)'
DISP_MIN_GAUGE = 'Min. Gauge Distance (mm)'
DISP_MAX_GAUGE = 'Max. Gauge Distance (mm)'
DISP_CS_GAUGE = 'Cross-centre Gauge Distance (mm)'
DISP_MIN_EDGE = 'Min. Edge Distance (mm)'
KEY_SPACING = "Spacing Check"
DISP_MAX_EDGE = 'Max. Edge Distance (mm)'
DISP_MIN_END = 'Min. End Distance (mm)'
DISP_MAX_END = 'Max. End Distance (mm)'
DISP_MIN_PLATE_HEIGHT = 'Min. Plate Height (mm)'
DISP_MAX_PLATE_HEIGHT = 'Max. Plate Height (mm)'
DISP_MIN_PLATE_LENGTH = 'Min. Plate Length (mm)'
DISP_MAX_PLATE_WIDTH = 'Max. Plate Width (mm)'
DISP_MIN_PLATE_WIDTH = 'Min. Plate Width (mm)'
DISP_MIN_LEG_LENGTH = 'Min. Leg Length (mm)'
DISP_MIN_CLEAT_HEIGHT = 'Min. Cleat Angle Height'
DISP_MAX_CLEAT_HEIGHT = 'Max. Cleat Angle Height'
DISP_MIN_CLEAT_THK = 'Min. Cleat Angle Thickness (mm)'
DISP_MIN_WIDTH = 'Minimum Width (mm)'
DISP_MIN_PLATE_THICK = 'Min. Plate Thickness (mm)'
######### Minimun for Flange####
DISP_MIN_FLANGE_PLATE_HEIGHT = 'Min. Flange Plate Width (mm)'
DISP_MAX_FLANGE_PLATE_HEIGHT = 'Max. Flange Plate Width (mm)'
DISP_MIN_FLANGE_PLATE_LENGTH = 'Min. Flange Plate Length (mm)'
DISP_MIN_FLANGE_PLATE_THICK = 'Min. Flange Plate Thickness (mm)'
######### Minimun for Flange####
DISP_MIN_WEB_PLATE_HEIGHT = 'Min. Web Plate Height (mm)'
DISP_MAX_WEB_PLATE_HEIGHT = 'Max. Web Plate Height (mm)'
DISP_MIN_WEB_PLATE_LENGTH = 'Min. Web Plate Width (mm)'
DISP_MIN_WEB_PLATE_THICK = 'Min. Web Plate Thickness (mm)'
DISP_MIN_PLATE_INNERHEIGHT = 'Min. Inner Plate Width (mm)'
DISP_MAX_PLATE_INNERHEIGHT = 'Max. Inner Plate Width (mm)'
DISP_MIN_PLATE_INNERLENGTH = 'Min. Inner Plate Length (mm)'
KEY_DISP_FU = 'Ultimate Strength, Fu (MPa)'
KEY_DISP_FY = 'Yield Strength, Fy (MPa)'
KEY_DISP_IR = 'Interaction Ratio'
DISP_WELD_SIZE = 'Weld Size (mm)'
DISP_MIN_WELD_SIZE = 'Min. Weld Size (mm)'
DISP_MAX_WELD_SIZE = 'Max. Weld Size (mm)'
DISP_THROAT = 'Throat Thickness (mm)'
DISP_WEB_WELD_SIZE_REQ = 'Web Weld Size Required (mm)'
DISP_WELD_STRENGTH = 'Weld Strength (N/mm)'
DISP_WELD_STRENGTH_MPA = 'Weld Strength (N/mm2)'
KEY_DISP_FY_20 = 'Yield Strength, Fy (MPa) (0-20mm)'
KEY_DISP_FY_20_40 = 'Yield Strength, Fy (MPa) (20-40mm)'
KEY_DISP_FY_40 = 'Yield Strength, Fy (MPa) (>40mm)'
DISP_TITLE_ANCHOR_BOLT = 'Anchor Bolt'
DISP_TITLE_ANCHOR_BOLT_OUTSIDE_CF = 'Anchor Bolt - Outside Column Flange'
DISP_TITLE_ANCHOR_BOLT = 'Anchor Bolt'
DISP_TITLE_FOOTING = 'Pedestal/Footing'
KEY_DISP_CONN = 'Connectivity'
KEY_DISP_ENDPLATE_TYPE = 'End Plate Type'
# VALUES_CONN_BP = ['Welded-Slab Base', 'Bolted-Slab Base', 'Gusseted Base Plate', 'Hollow Section']
KEY_DISP_LENGTH = 'Length (mm) *'
KEY_DISP_LOCATION = 'Conn_Location *'
KEY_DISP_MATERIAL = 'Material'
KEY_DISP_SUPTNGSEC = 'Supporting Section'
KEY_DISP_SUPTNGSEC_REPORT = 'Supporting Section - Mechanical Properties'
KEY_DISP_COLSEC = 'Column Section *'
KEY_DISP_COLSEC_REPORT = 'Column Section'
KEY_DISP_PRIBM = 'Primary Beam *'
KEY_DISP_SUPTDSEC = 'Supported Section'
KEY_DISP_SUPTDSEC_REPORT = 'Supported Section - Mechanical Properties'
KEY_DISP_BEAMSEC = 'Beam Section *'
KEY_DISP_BEAMSEC_REPORT = 'Beam Section'
KEY_DISP_SECBM = 'Secondary Beam *'
DISP_TITLE_FSL = 'Factored Loads'
KEY_DISP_MOMENT = 'Bending Moment (kNm)'
KEY_DISP_TOP_ANGLE = 'Top Angle'
KEY_DISP_DIA_ANCHOR = 'Diameter(mm)'
DISP_TITLE_BOLT = 'Bolt'
DISP_TITLE_CRITICAL_BOLT = 'Critical Bolt Design'
DISP_TITLE_CRITICAL_BOLT_SHEAR = 'Critical Bolt - Shear Design'
DISP_TITLE_BOLT_CAPACITY = 'Bolt Capacity'
DISP_TITLE_FLANGESPLICEPLATE = 'Flange Splice Plate '
DISP_TITLE_FLANGESPLICEPLATE_OUTER = 'Outer Plate '
DISP_TITLE_FLANGESPLICEPLATE_INNER = 'Inner Plate '
KEY_DISP_SLENDER = 'Slenderness'
KEY_DISP_PLATETHK = 'Thickness (mm)'
KEY_DISP_DPPLATETHK = 'Endplate thickness, T (mm)'
KEY_DISP_DPPLATETHK01 = 'Endplate thickness, Tp (mm)'
DISP_TITLE_TENSION = 'Tension Capacity'
KEY_DISP_FLANGESPLATE_PREFERENCES = 'Preference'
KEY_DISP_FLANGESPLATE_THICKNESS = 'Thickness (mm)'
KEY_DISP_INNERFLANGESPLATE_THICKNESS = 'Thickness (mm)'
DISP_TITLE_WELD = 'Weld'
DISP_TITLE_WELD_CAPACITY = 'Weld Capacity'
DISP_TITLE_END_CONNECTION = 'End Connection'
DISP_TITLE_WELD_DETAILS = 'Weld Details'
DISP_TITLE_CONN_DETAILS = 'Connection Details'
KEY_DISP_FLANGE_CAPACITY= 'Capacity'
KEY_DISP_FLANGE_PLATE_GAUGE ="Gauge Distance (mm)"
KEY_DISP_FLANGE_SPACING = 'Spacing (mm)'
KEY_DISP_END_DIST_FLANGE = 'End Distance'
KEY_DISP_EDGEDIST_FLANGE= 'Edge Distance (mm)'
KEY_DISP_FLANGE_PLATE_PITCH = 'Pitch Distance (mm)'
KEY_DISP_FLANGE_PLATE_TEN_CAP ="Flange Plate Tension Capacity (kN)"
DISP_TITLE_SECTION = 'Section Details'
DISP_TITLE_TENSION_SECTION = 'Section Details'
SECTION_CLASSIFICATION = "Section Classification"
KEY_DISP_D = 'Diameter (mm)'
KEY_DISP_SHEAR = 'Shear Force (kN)'
KEY_DISP_AXIAL = 'Axial Force (kN)'
KEY_DISP_AXIAL_STAR = 'Axial (kN)* '
DISP_TITLE_PLATE = 'Plate'
KEY_DISP_TYP = 'Type'
KEY_DISP_TYP_ANCHOR = 'Anchor Type'
KEY_DISP_GRD_ANCHOR = 'Property Class'
KEY_DISP_GRD_FOOTING = 'Grade*'
KEY_DISP_GRD = 'Property Class'
KEY_DISP_BOLT_PRE_TENSIONING = 'Bolt Tension'
KEY_DISP_MOMENT_MAJOR = ' - Major axis (M<sub>z-z</sub>)'
KEY_DISP_MOMENT_MINOR = ' - Minor axis (M<sub>y-y</sub>)'
# Applied load
KEY_INTERACTION_RATIO ="Interaction Ratio"
MIN_LOADS_REQUIRED ="Minimum Required Load"
KEY_DISP_APPLIED_SHEAR_LOAD = 'Applied Shear Force (kN)'
KEY_DISP_APPLIED_AXIAL_FORCE = 'Applied Axial Force (kN)'
KEY_DISP_APPLIED_MOMENT_LOAD = 'Applied Moment (kNm)'
KEY_DISP_AXIAL_FORCE_CON = 'Axial Load Considered (kN)'
# capacity
KEY_OUT_DISP_AXIAL_CAPACITY = "Axial Capacity Member (kN)"
KEY_OUT_DISP_SHEAR_CAPACITY = "Shear Capacity Member (kN)"
KEY_OUT_DISP_MOMENT_CAPACITY = "Moment Capacity Member (kNm)"
KEY_OUT_DISP_PLASTIC_MOMENT_CAPACITY = 'Plastic Moment Capacity (kNm)'
KEY_OUT_DISP_MOMENT_D_DEFORMATION= 'Moment Deformation Criteria (kNm)'
KEY_OUT_DISP_SHEAR_CAPACITY_M = "Shear Capacity (kN)"
KEY_OUT_DIA_ANCHOR = 'Anchor Bolt.Diameter'
KEY_DISP_OUT_DIA_ANCHOR = 'Diameter (mm)'
KEY_OUT_GRD_ANCHOR = 'Anchor Bolt.Grade'
KEY_DISP_OUT_GRD_ANCHOR = 'Property Class'
KEY_OUT_ANCHOR_BOLT_LENGTH = 'Anchor Bolt.Length'
KEY_DISP_OUT_ANCHOR_BOLT_LENGTH = 'Anchor Length (mm)'
KEY_OUT_ANCHOR_BOLT_NO = 'Anchor Bolt.No of Anchor Bolts'
KEY_DISP_OUT_ANCHOR_BOLT_NO = 'No. of Anchors'
KEY_OUT_DISP_ANCHOR_BOLT_SHEAR = 'Shear Capacity (kN)'
KEY_OUT_DISP_ANCHOR_BOLT_BEARING = 'Bearing Capacity (kN)'
KEY_OUT_DISP_ANCHOR_BOLT_CAPACITY = 'Bolt Capacity (kN)'
KEY_OUT_DISP_ANCHOR_BOLT_COMBINED = 'Combined Capacity (kN)'
KEY_OUT_DISP_ANCHOR_BOLT_TENSION_DEMAND = 'Tension Demand (kN)'
KEY_OUT_DISP_ANCHOR_BOLT_TENSION = 'Tension Capacity (kN)'
DISP_TITLE_ANCHOR_BOLT_UPLIFT = 'Anchor Bolt - Inside Column Flange'
KEY_OUT_DIA_ANCHOR_UPLIFT = 'Anchor Bolt.Diameter_Uplift'
KEY_DISP_OUT_DIA_ANCHOR_UPLIFT = 'Diameter (mm)'
KEY_OUT_GRD_ANCHOR_UPLIFT = 'Anchor Bolt.Grade_Uplift'
KEY_DISP_OUT_GRD_ANCHOR_UPLIFT = 'Property Class'
KEY_OUT_ANCHOR_UPLIFT_BOLT_NO = 'Anchor Bolt.No of Anchor Bolts_Uplift'
KEY_DISP_OUT_ANCHOR_UPLIFT_BOLT_NO = 'No. of Anchor Bolts'
KEY_OUT_ANCHOR_BOLT_LENGTH_UPLIFT = 'Anchor Bolt.Length_Uplift'
KEY_DISP_OUT_ANCHOR_BOLT_LENGTH_UPLIFT = 'Anchor Length (mm)'
KEY_OUT_ANCHOR_BOLT_TENSION_UPLIFT = 'Anchor Bolt.Tension_Uplift'
KEY_OUT_DISP_ANCHOR_BOLT_TENSION_UPLIFT = 'Tension Capacity (kN)'
KEY_OUT_ANCHOR_BOLT_TENSION_DEMAND_UPLIFT = 'Anchor Bolt.Tension_Demand_Uplift'
KEY_OUT_DISP_ANCHOR_BOLT_TENSION_DEMAND_UPLIFT = 'Tension Demand (kN)'
DISP_TITLE_MEMBER_CAPACITY ="Member Capacity"
KEY_DISP_MEMBER_CAPACITY = "Member Capacity"
KEY_OUT_DISP_BASEPLATE_WIDTH = 'Width (mm)'
KEY_OUT_DISP_BASEPLATE_LENGTH = 'Length (mm)'
KEY_OUT_DISP_BASEPLATE_THICKNNESS = 'Thickness (mm)'
DISP_TITLE_DETAILING = 'Detailing'
DISP_TITLE_TYPICAL_DETAILING = 'Typical Detailing'
DISP_TITLE_DETAILING_OCF = 'Detailing - Outside Column Flange'
DISP_TITLE_DETAILING_ICF = 'Detailing - Inside Column Flange'
KEY_OUT_DISP_DETAILING_NO_OF_ANCHOR_BOLT = 'Total No. of Anchor Bolts'
KEY_OUT_DISP_DETAILING_PITCH_DISTANCE = 'Pitch Distance (mm)'
KEY_IN_DISP_DETAILING_PITCH_DISTANCE = 'Pitch Distance (mm)'
KEY_OUT_DISP_DETAILING_GAUGE_DISTANCE = 'Gauge Distance (mm)'
KEY_IN_DISP_DETAILING_GAUGE_DISTANCE = 'Gauge Distance (mm)'
KEY_OUT_DISP_DETAILING_CS_GAUGE_DISTANCE = 'Cross-centre Gauge (mm)'
KEY_OUT_DETAILING_END_DISTANCE = 'Detailing.EndDistanceOut'
KEY_IN_DETAILING_END_DISTANCE = 'Detailing.EndDistanceIn'
KEY_OUT_DISP_DETAILING_END_DISTANCE = 'End Distance (mm)'
KEY_IN_DISP_DETAILING_END_DISTANCE = 'End Distance (mm)'
KEY_OUT_DISP_DETAILING_EDGE_DISTANCE = "Edge Distance (mm)"
KEY_IN_DISP_DETAILING_EDGE_DISTANCE = "Edge Distance (mm)"
KEY_OUT_DISP_DETAILING_PROJECTION = 'Effective Projection (mm)'
DISP_TITLE_STIFFENER_PLATE = 'Stiffener Plate'
DISP_OUT_TITLE_STIFFENER_PLATE = 'Stiffener.StiffenerPlate'
DISP_OUT_TITLE_CHS_STIFFENER_PLATE = 'Stiffener.StiffenerPlate'
DISP_TITLE_CONTINUITY_PLATE = 'Continuity Plate'
DISP_TITLE_COL_WEB_STIFFENER_PLATE = 'Column Web Stiffener Plate'
KEY_OUT_DISP_STIFFENER_PLATE_THICKNESS = 'Thickness (mm)'
KEY_OUT_DISP_STIFFENER_PLATE_SHEAR_DEMAND = 'Shear Demand (kN)'
KEY_OUT_DISP_STIFFENER_PLATE_SHEAR = 'Shear Capacity (kN)'
KEY_OUT_DISP_STIFFENER_PLATE_MOMENT_DEMAND = 'Moment Demand (kNm)'
KEY_OUT_DISP_STIFFENER_PLATE_MOMENT = 'Moment Capacity (kNm)'
KEY_OUT_DISP_GUSSET_PLATE_MOMENT = 'Moment Capacity (kNm)'
KEY_OUT_DISP_GUSSET_PLATE_MOMENT_DEMAND = 'Moment Demand (kNm)'
KEY_OUT_DISP_GUSSET_PLATE_SHEAR = 'Shear Capacity (kN)'
KEY_OUT_DISP_GUSSET_PLATE_THICKNESS = 'Thickness (mm)'
KEY_OUT_DISP_GUSSET_PLATE_SHEAR_DEMAND = 'Shear Demand (kN)'
DISP_TITLE_GUSSET_PLATE = 'Gusset Plate Details'
KEY_DISP_FLANGE_PLATE_LENGTH = 'Length (mm)'
KEY_DISP_FLANGE_PLATE_HEIGHT = 'Width (mm)'
KEY_DISP_INNERFLANGESPLICEPLATE = "Inner Plate Details"
DISP_TITLE_INNERFLANGESPLICEPLATE = 'Inner Flange splice plate'
KEY_DISP_INNERFLANGE_PLATE_HEIGHT = 'Width (mm)'
KEY_DISP_INNERFLANGE_PLATE_LENGTH = 'Length (mm)'
# DISP_TITLE_GUSSET_PLATE = 'Gusset Plate'
# KEY_OUT_GUSSET_PLATE_THICKNNESS = 'GussetPlate.Thickness'
# KEY_OUT_DISP_GUSSET_PLATE_THICKNESS = 'Thickness (mm)'
# KEY_OUT_GUSSET_PLATE_SHEAR_DEMAND = 'GussetPlate.Shear_Demand'
# KEY_OUT_DISP_GUSSET_PLATE_SHEAR_DEMAND = 'Shear Demand (kN)'
# KEY_OUT_GUSSET_PLATE_SHEAR = 'GussetPlate.Shear'
# KEY_OUT_DISP_GUSSET_PLATE_SHEAR = 'Shear Capacity (kN)'
# KEY_OUT_GUSSET_PLATE_MOMENT_DEMAND = 'GussetPlate.Moment_Demand'
# KEY_OUT_DISP_GUSSET_PLATE_MOMENT_DEMAND = 'Moment Demand (kNm)'
# KEY_OUT_GUSSET_PLATE_MOMENT = 'GussetPlate.Moment'
# KEY_OUT_DISP_GUSSET_PLATE_MOMENT = 'Moment Capacity (kNm)'
KEY_OUT_STIFFENER_PLATE_FLANGE = 'Stiffener_Plate.Column_flange'
KEY_DISP_OUT_STIFFENER_PLATE_FLANGE = 'Stiffener Plate'
DISP_TITLE_STIFFENER_PLATE_FLANGE = 'Stiffener Plate along Column flange'
KEY_OUT_STIFFENER_PLATE_FLANGE_LENGTH = 'Stiffener_Plate_Flange.Length'
KEY_OUT_DISP_STIFFENER_PLATE_FLANGE_LENGTH = 'Length (mm)'
KEY_OUT_STIFFENER_PLATE_FLANGE_HEIGHT = 'Stiffener_Plate_Flange.Height'
KEY_OUT_DISP_STIFFENER_PLATE_FLANGE_HEIGHT = 'Height (mm)'
KEY_OUT_STIFFENER_PLATE_FLANGE_THICKNNESS = 'Stiffener_Plate_Flange.Thickness'
KEY_OUT_DISP_STIFFENER_PLATE_FLANGE_THICKNESS = 'Thickness (mm)'
KEY_OUT_STIFFENER_PLATE_FLANGE_SHEAR_DEMAND = 'Stiffener_Plate_Flange.Shear_Demand'
KEY_OUT_DISP_STIFFENER_PLATE_FLANGE_SHEAR_DEMAND = 'Shear Demand (kN)'
KEY_OUT_STIFFENER_PLATE_FLANGE_SHEAR = 'Stiffener_Plate_Flange.Shear'
KEY_OUT_DISP_STIFFENER_PLATE_FLANGE_SHEAR = 'Shear Capacity (kN)'
KEY_OUT_STIFFENER_PLATE_FLANGE_MOMENT_DEMAND = 'Stiffener_Plate_Flange.Moment_Demand'
KEY_OUT_DISP_STIFFENER_PLATE_FLANGE_MOMENT_DEMAND = 'Moment Demand (kNm)'
KEY_OUT_STIFFENER_PLATE_FLANGE_MOMENT = 'Stiffener_Plate_Flange.Moment'
KEY_OUT_DISP_STIFFENER_PLATE_FLANGE_MOMENT = 'Moment Capacity (kNm)'
KEY_OUT_STIFFENER_PLATE_ALONG_WEB = 'Stiffener_Plate.Along_Column_web'
KEY_DISP_OUT_STIFFENER_PLATE_ALONG_WEB = 'Stiffener Plate'
DISP_TITLE_STIFFENER_PLATE_ALONG_WEB = 'Stiffener Plate along Column web'
KEY_OUT_STIFFENER_PLATE_ALONG_WEB_LENGTH = 'Stiffener_Plate_along_Web.Length'
KEY_OUT_DISP_STIFFENER_PLATE_ALONG_WEB_LENGTH = 'Length (mm)'
KEY_OUT_STIFFENER_PLATE_ALONG_WEB_HEIGHT = 'Stiffener_Plate_along_Web.Height'
KEY_OUT_DISP_STIFFENER_PLATE_ALONG_WEB_HEIGHT = 'Height (mm)'
KEY_OUT_STIFFENER_PLATE_ALONG_WEB_THICKNNESS = 'Stiffener_Plate_along_Web.Thickness'
KEY_OUT_DISP_STIFFENER_PLATE_ALONG_WEB_THICKNESS = 'Thickness (mm)'
KEY_OUT_STIFFENER_PLATE_ALONG_WEB_SHEAR_DEMAND = 'Stiffener_Plate_along_Web.Shear_Demand'
KEY_OUT_DISP_STIFFENER_PLATE_ALONG_WEB_SHEAR_DEMAND = 'Shear Demand (kN)'
KEY_OUT_STIFFENER_PLATE_ALONG_WEB_SHEAR = 'Stiffener_Plate_along_Web.Shear'
KEY_OUT_DISP_STIFFENER_PLATE_ALONG_WEB_SHEAR = 'Shear Capacity (kN)'
KEY_OUT_STIFFENER_PLATE_ALONG_WEB_MOMENT_DEMAND = 'Stiffener_Plate_along_Web.Moment_Demand'
KEY_OUT_DISP_STIFFENER_PLATE_ALONG_WEB_MOMENT_DEMAND = 'Moment Demand (kNm)'
KEY_OUT_STIFFENER_PLATE_ALONG_WEB_MOMENT = 'Stiffener_Plate_along_Web.Moment'
KEY_OUT_DISP_STIFFENER_PLATE_ALONG_WEB_MOMENT = 'Moment Capacity (kNm)'
KEY_OUT_STIFFENER_PLATE_ACROSS_WEB = 'Stiffener_Plate.Across_Column_web'
KEY_DISP_OUT_STIFFENER_PLATE_ACROSS_WEB = 'Stiffener Plate'
DISP_TITLE_STIFFENER_PLATE_ACROSS_WEB = 'Stiffener Plate across Column web'
KEY_OUT_STIFFENER_PLATE_ACROSS_WEB_LENGTH = 'Stiffener_Plate_across_Web.Length'
KEY_OUT_DISP_STIFFENER_PLATE_ACROSS_WEB_LENGTH = 'Length (mm)'
KEY_OUT_STIFFENER_PLATE_ACROSS_WEB_HEIGHT = 'Stiffener_Plate_across_Web.Height'
KEY_OUT_DISP_STIFFENER_PLATE_ACROSS_WEB_HEIGHT = 'Height (mm)'
KEY_OUT_STIFFENER_PLATE_ACROSS_WEB_THICKNNESS = 'Stiffener_Plate_across_Web.Thickness'
KEY_OUT_DISP_STIFFENER_PLATE_ACROSS_WEB_THICKNESS = 'Thickness (mm)'
KEY_OUT_STIFFENER_PLATE_ACROSS_WEB_SHEAR_DEMAND = 'Stiffener_Plate_across_Web.Shear_Demand'
KEY_OUT_DISP_STIFFENER_PLATE_ACROSS_WEB_SHEAR_DEMAND = 'Shear Demand (kN)'
KEY_OUT_DISP_STIFFENER_PLATE_SHEAR_DEMAND = 'Shear Demand (kN)'
KEY_OUT_STIFFENER_PLATE_ACROSS_WEB_SHEAR = 'Stiffener_Plate_across_Web.Shear'
KEY_OUT_DISP_STIFFENER_PLATE_ACROSS_WEB_SHEAR = 'Shear Capacity (kN)'
KEY_OUT_STIFFENER_PLATE_ACROSS_WEB_MOMENT_DEMAND = 'Stiffener_Plate_across_Web.Moment_Demand'
KEY_OUT_DISP_STIFFENER_PLATE_ACROSS_WEB_MOMENT_DEMAND = 'Moment Demand (kNm)'
KEY_OUT_STIFFENER_PLATE_ACROSS_WEB_MOMENT = 'Stiffener_Plate_across_Web.Moment'
KEY_OUT_DISP_STIFFENER_PLATE_ACROSS_WEB_MOMENT = 'Moment Capacity (kNm)'
KEY_OUT_SHEAR_KEY = 'Shear Key.Along_both_direction'
KEY_OUT_SHEAR_KEY_TYPICAL_DETAILS = 'Shear Key.TypicalDetails'
KEY_DISP_OUT_SHEAR_KEY = 'Shear Key'
KEY_DISP_OUT_SHEAR_KEY_TYPICAL_DETAILS = 'Typical Details'
DISP_TITLE_SHEAR_KEY = 'Shear Design'
KEY_OUT_SHEAR_RESISTANCE = 'ShearDesign.Resistance'
KEY_OUT_DISP_SHEAR_RESISTANCE = 'Shear Resistance (kN)'
KEY_OUT_SHEAR_KEY_REQ = 'Shear_key.Required'
KEY_OUT_DISP_SHEAR_KEY_REQ = 'Key Required?'
KEY_OUT_SHEAR_KEY_LENGTH = 'Shear_key.Length'
KEY_OUT_DISP_SHEAR_KEY_LENGTH = 'Length (mm)'
KEY_OUT_SHEAR_KEY_DEPTH = 'Shear_key.Depth'
KEY_OUT_DISP_SHEAR_KEY_DEPTH = 'Depth (mm)'
KEY_OUT_SHEAR_KEY_THICKNESS = 'Shear_key.Thickness'
KEY_OUT_DISP_SHEAR_KEY_THICKNESS = 'Thickness (mm)'
KEY_OUT_SHEAR_KEY_STRESS = 'Shear_key.Stress'
KEY_OUT_DISP_SHEAR_KEY_STRESS = 'Bearing Stress (N/mm2)'
KEY_OUT_SHEAR_KEY_MOM_DEMAND = 'Shear_key.MomentDemand'
KEY_OUT_DISP_SHEAR_KEY_MOM_DEMAND = 'Moment Demand (kNm)'
KEY_OUT_SHEAR_KEY_MOM_CAPACITY = 'Shear_key.MomentCapacity'
KEY_OUT_DISP_SHEAR_KEY_MOM_CAPACITY = 'Moment Capacity (kNm)'
#
# DISP_TITLE_STIFFENER_PLATE = 'Stiffener Plate'
# KEY_OUT_STIFFENER_PLATE_THICKNNESS = 'StiffenerPlate.Thickness'
# KEY_OUT_DISP_STIFFENER_PLATE_THICKNESS = 'Thickness (mm)'
# KEY_OUT_STIFFENER_PLATE_SHEAR_DEMAND = 'StiffenerPlate.Shear_Demand'
# KEY_OUT_DISP_STIFFENER_PLATE_SHEAR_DEMAND = 'Shear Demand (kN)'
# KEY_OUT_STIFFENER_PLATE_SHEAR = 'StiffenerPlate.Shear'
# KEY_OUT_DISP_STIFFENER_PLATE_SHEAR = 'Shear Capacity (kN)'
# KEY_OUT_STIFFENER_PLATE_MOMENT_DEMAND = 'StiffenerPlate.Moment_Demand'
# KEY_OUT_DISP_STIFFENER_PLATE_MOMENT_DEMAND = 'Moment Demand (kNm)'
# KEY_OUT_STIFFENER_PLATE_MOMENT = 'StiffenerPlate.Moment'
# KEY_OUT_DISP_STIFFENER_PLATE_MOMENT = 'Moment Capacity (kNm)'
KEY_DP_ANCHOR_BOLT_DESIGNATION_OCF = 'DesignPreferences.Anchor_Bolt.OCF.Designation'
KEY_DP_ANCHOR_BOLT_DESIGNATION_ICF = 'DesignPreferences.Anchor_Bolt.ICF.Designation'
KEY_DP_ANCHOR_BOLT_TYPE_OCF = 'DesignPreferences.Anchor_Bolt.OCF.Type'
KEY_DP_ANCHOR_BOLT_TYPE_ICF = 'DesignPreferences.Anchor_Bolt.ICF.Type'
KEY_DISP_DP_ANCHOR_BOLT_TYPE = 'Anchor Bolt Type'
KEY_DP_ANCHOR_BOLT_HOLE_TYPE_OCF = 'DesignPreferences.Anchor_Bolt.OCF.Bolt_Hole_Type'
KEY_DP_ANCHOR_BOLT_HOLE_TYPE_ICF = 'DesignPreferences.Anchor_Bolt.ICF.Bolt_Hole_Type'
KEY_DISP_DP_ANCHOR_BOLT_HOLE_TYPE = 'Anchor Bolt Hole Type'
KEY_DISP_REPORT_HOLE_TYPE = 'Hole Type'
KEY_DP_ANCHOR_BOLT_MATERIAL_G_O_OCF = 'DesignPreferences.Anchor_Bolt.OCF.Material_Grade_OverWrite'
KEY_DP_ANCHOR_BOLT_MATERIAL_G_O_ICF = 'DesignPreferences.Anchor_Bolt.ICF.Material_Grade_OverWrite'
KEY_DISP_DP_ANCHOR_BOLT_MATERIAL_G_O = 'Material Grade, Fu (MPa)'
KEY_DISP_DP_ANCHOR_BOLT_DESIGN_PARA = 'HSFG bolt design parameters:'
KEY_DP_ANCHOR_BOLT_SLIP_FACTOR = 'DesignPreferences.Anchor_Bolt.Slip_Factor'
KEY_DISP_DP_ANCHOR_BOLT_SLIP_FACTOR = 'Slip factor (µ_f)'
KEY_DP_ANCHOR_BOLT_GALVANIZED_OCF = 'DesignPreferences.Anchor_Bolt.OCF.Galvanized'
KEY_DP_ANCHOR_BOLT_GALVANIZED_ICF = 'DesignPreferences.Anchor_Bolt.ICF.Galvanized'
KEY_DISP_DP_ANCHOR_BOLT_GALVANIZED = 'Anchor Bolt Galvanized?'
KEY_DP_ANCHOR_BOLT_LENGTH_OCF = 'DesignPreferences.Anchor_Bolt.OCF.Length'
KEY_DP_ANCHOR_BOLT_LENGTH_ICF = 'DesignPreferences.Anchor_Bolt.ICF.Length'
KEY_DISP_DP_ANCHOR_BOLT_LENGTH = 'Total Length (mm)'
KEY_DP_ANCHOR_BOLT_FRICTION = 'DesignPreferences.Anchor_Bolt.Friction_coefficient'
KEY_DISP_DP_ANCHOR_BOLT_FRICTION = 'Friction Coefficient <br>(between concrete and anchor bolt)'
KEY_DISP_DP_BOLT_TYPE = 'Bolt tensioning type'
###################################
# Key for Storing Shear sub-key of Load
KEY_SHEAR_BP = 'Load.Shear_BP'
KEY_DISP_SHEAR_BP = 'Shear Force (kN)'
KEY_SHEAR_MAJOR = 'Load.Shear.Major'
KEY_DISP_SHEAR_MAJOR = ' - Along major axis (z-z)'
KEY_SHEAR_MINOR = 'Load.Shear.Minor'
KEY_DISP_SHEAR_MINOR = ' - Along minor axis (y-y)'
###################################
# Key for Storing Axial sub-key of Load
KEY_AXIAL_BP = 'Load.Axial_Compression'
KEY_DISP_AXIAL_BP = 'Axial Compression (kN)'
KEY_AXIAL_TENSION_BP = 'Load.Axial_Tension'
KEY_DISP_AXIAL_TENSION_BP = 'Axial Tension/Uplift (kN)'
KEY_DISP_DP_BOLT_HOLE_TYPE = 'Hole Type'
# KEY_PC = 'Bolt.PC'
KEY_DISP_PC = 'Property Class'
KEY_DISP_DP_BOLT_MATERIAL_G_O = 'Material grade overwrite (MPa) Fu'
KEY_DISP_DP_BOLT_DESIGN_PARA = 'HSFG Bolt:'
KEY_DISP_DP_BOLT_SLIP_FACTOR = 'Slip Factor, (mu<sub>f</sub>)'
KEY_DISP_DP_BOLT_SLIP_FACTOR_REPORT = 'Slip Factor, ($\mu_{f}$)'
KEY_DISP_DP_BOLT_FU = 'Bolt Ultimate Strength (N/mm2)'
KEY_DISP_DP_BOLT_FY = 'Bolt Yield Strength (N/mm2)'
KEY_DISP_GAMMA_M0 = "Governed by Yielding"
KEY_DISP_GAMMA_M1 = "Governed by Ultimate Stress"
KEY_DISP_GAMMA_MB = "Connection Bolts - Bearing Type"
KEY_DISP_GAMMA_MF = "Connection Bolts - Friction Type"
KEY_DISP_GAMMA_MW = "Connection Weld"
KEY_DISP_DP_WELD_TYPE = 'Weld Type'
KEY_DISP_BEAM_FLANGE_WELD_TYPE = 'Beam Flange to End Plate'
KEY_DISP_BEAM_WEB_WELD_TYPE = 'Beam Web to End Plate'
KEY_DISP_STIFFENER_WELD_TYPE = "Stiffener"
KEY_DISP_CONTINUITY_PLATE_WELD_TYPE = "Continuity Plate"
KEY_DP_WELD_TYPE_FILLET = 'Fillet Weld'
KEY_DP_WELD_TYPE_GROOVE = 'Groove Weld'
KEY_DP_WELD_TYPE_VALUES = [KEY_DP_WELD_TYPE_FILLET, KEY_DP_WELD_TYPE_GROOVE]
KEY_DISP_DP_WELD_FAB = 'Type of Weld Fabrication'
KEY_DP_FAB_SHOP = 'Shop Weld'
KEY_DP_FAB_FIELD = 'Field weld'
KEY_DP_WELD_FAB_VALUES = [KEY_DP_FAB_SHOP, KEY_DP_FAB_FIELD]
KEY_DISP_DP_WELD_MATERIAL_G_O = 'Material Grade Overwrite, Fu (MPa)'
KEY_DISP_DP_WELD_MATERIAL_G_O_REPORT = 'Material Grade Overwrite, $F_{u}$ (MPa)'
KEY_DP_DESIGN_BASE_PLATE = 'DesignPreferences.Design.Base_Plate'
# KEY_DISP_DP_DETAILING_EDGE_TYPE = 'Type of edge'
KEY_DISP_DP_DETAILING_EDGE_TYPE = 'Edge Preparation Method' # added by Danish Ansari
DISP_TITLE_INTERMITTENT = 'Intermittent Connection'
DISP_TITLE_BOLTD = 'Bolt Details'
DISP_TITLE_PLATED = 'Plate Details'
KEY_DISP_DP_DETAILING_GAP = 'Gap Between Beam and <br>Support (mm)'
KEY_DISP_DP_DETAILING_GAP_BEAM = 'Gap Between Beams (mm)'
KEY_DISP_DP_DETAILING_GAP_COL = 'Gap Between Columns (mm)'
KEY_DISP_DP_DETAILING_CORROSIVE_INFLUENCES = 'Are the Members Exposed to <br> Corrosive Influences?'
KEY_DISP_DP_DETAILING_CORROSIVE_INFLUENCES_BEAM = 'Are the Members Exposed to Corrosive Influences?'
KEY_DISP_CORR_INFLUENCES = 'Members exposed to corrosive influences?'
KEY_DISP_DP_DESIGN_METHOD = 'Design Method'
KEY_DISP_DP_DESIGN_BASE_PLATE = 'Base Plate Analysis'
KEY_DISP_GAP = 'Gap Between Members (mm)'
KEY_DISP_MECH_PROP = 'Mechanical Properties'
KEY_DISP_DIMENSIONS = 'Dimensions'
KEY_DISP_DEPTH = 'Depth, D (mm)*'
KEY_DISP_WIDTH = 'Width, B (mm)*'