def Activated(self): from gui_civiltools.gui_check_legal import ( allowed_to_continue, show_warning_about_number_of_use, ) allow, check = allowed_to_continue( 'show_drifts.bin', 'https://gist.githubusercontent.com/ebrahimraeyat/7f10571fab2a08b7a17ab782778e53e1/raw', 'cfactor' ) if not allow: return import etabs_obj etabs = etabs_obj.EtabsModel() if not etabs.success: QMessageBox.warning(None, 'ETABS', 'Please open etabs file!') return False etabs_filename = etabs.get_filename() json_file = etabs_filename.with_suffix('.json') if not json_file.exists(): QMessageBox.warning(None, 'Settings', 'Please Set Options First!') Gui.runCommand("civiltools_settings") return from py_widget import drift win = drift.Form(etabs, json_file) Gui.Control.showDialog(win) show_warning_about_number_of_use(check)
def Activated(self): from gui_civiltools.gui_check_legal import ( allowed_to_continue, show_warning_about_number_of_use, ) allow, check = allowed_to_continue( '100-30.bin', 'https://gist.githubusercontent.com/ebrahimraeyat/bbfab4efcc50cbcfeba7288339b68c90/raw', 'cfactor', n=2, ) if not allow: return import etabs_obj etabs = etabs_obj.EtabsModel(backup=False) if not etabs.success: QMessageBox.warning(None, 'ETABS', 'Please open etabs file!') return False ex, ey = etabs.load_patterns.get_EX_EY_load_pattern() if ex is None or ey is None: QMessageBox.warning(None, 'ETABS', 'Please Define EX and EY in ETABS Model.') return False from py_widget.control import columns_100_30 win = columns_100_30.Form(etabs, ex, ey) Gui.Control.showDialog(win) show_warning_about_number_of_use(check)
def Activated(self): from gui_civiltools.gui_check_legal import ( allowed_to_continue, show_warning_about_number_of_use ) allow, check = allowed_to_continue( 'export_to_etabs.bin', 'https://gist.githubusercontent.com/ebrahimraeyat/7f10571fab2a08b7a17ab782778e53e1/raw', 'cfactor' ) if not allow: return import etabs_obj etabs = etabs_obj.EtabsModel(backup=False) if not etabs.success: from PySide2.QtWidgets import QMessageBox QMessageBox.warning(None, 'ETABS', 'Please open etabs file!') return False from py_widget import aj_correction win = aj_correction.Form(etabs) import FreeCADGui as Gui Gui.Control.showDialog(win) # mdi = get_mdiarea() # if not mdi: # return None # sub = mdi.addSubWindow(win) # sub.show() show_warning_about_number_of_use(check)
def Activated(self): from gui_civiltools.gui_check_legal import ( allowed_to_continue, show_warning_about_number_of_use, ) allow, check = allowed_to_continue( 'explode_loads.bin', 'https://gist.githubusercontent.com/ebrahimraeyat/f05421c70967b698ca9016a1bdb54b01/raw', 'cfactor', ) if not allow: return import etabs_obj from py_widget import explode_seismic_load_patterns etabs = etabs_obj.EtabsModel() panel = explode_seismic_load_patterns.Form(etabs) Gui.Control.showDialog(panel) show_warning_about_number_of_use(check)
def Activated(self): from gui_civiltools.gui_check_legal import ( allowed_to_continue, show_warning_about_number_of_use) allow, check = allowed_to_continue( 'response_spectrum.bin', 'https://gist.githubusercontent.com/ebrahimraeyat/2370d564be6b4ba2508f8314a3358970/raw', 'cfactor', n=2, ) if not allow: return import etabs_obj etabs = etabs_obj.EtabsModel(backup=False) if not etabs.success: from PySide2.QtWidgets import QMessageBox QMessageBox.warning(None, 'ETABS', 'Please open etabs file!') return False from py_widget import response_spectrum import FreeCADGui as Gui win = response_spectrum.Form(etabs) Gui.Control.showDialog(win) show_warning_about_number_of_use(check)
def Activated(self): from gui_civiltools.gui_check_legal import ( allowed_to_continue, show_warning_about_number_of_use, ) allow, check = allowed_to_continue( 'correct_j.bin', 'https://gist.githubusercontent.com/ebrahimraeyat/98b4863d25f0779dce2347d73a99212b/raw', 'cfactor', ) if not allow: return import etabs_obj etabs = etabs_obj.EtabsModel() if not etabs.success: from PySide2.QtWidgets import QMessageBox QMessageBox.warning(None, 'ETABS', 'Please open etabs file!') return False from py_widget import beam_j win = beam_j.Form(etabs) Gui.Control.showDialog(win) show_warning_about_number_of_use(check)
def Activated(self): from gui_civiltools.gui_check_legal import ( allowed_to_continue, show_warning_about_number_of_use, ) allow, check = allowed_to_continue( 'torsion.bin', 'https://gist.githubusercontent.com/ebrahimraeyat/d1591790a52a62b3e66bb70f45738105/raw', 'cfactor', n=2, ) if not allow: return from py_widget import torsion import etabs_obj etabs = etabs_obj.EtabsModel(backup=False) if not etabs.success: from PySide2.QtWidgets import QMessageBox QMessageBox.warning(None, 'ETABS', 'Please open etabs file!') return False win = torsion.Form(etabs) Gui.Control.showDialog(win) show_warning_about_number_of_use(check)
def Activated(self): from gui_civiltools.gui_check_legal import ( allowed_to_continue, show_warning_about_number_of_use, ) allow, check = allowed_to_continue( 'stiffness.bin', 'https://gist.githubusercontent.com/ebrahimraeyat/e5635c17392c73540a46761a7247836e/raw', 'cfactor', n=2, ) if not allow: return import etabs_obj etabs = etabs_obj.EtabsModel(backup=False) if not etabs.success: from PySide2.QtWidgets import QMessageBox QMessageBox.warning(None, 'ETABS', 'Please open etabs file!') return False from py_widget import get_siffness_story_way win = get_siffness_story_way.Form(etabs) Gui.Control.showDialog(win) show_warning_about_number_of_use(check)
def Activated(self): from gui_civiltools.gui_check_legal import ( allowed_to_continue, show_warning_about_number_of_use, ) allow, check = allowed_to_continue( 'assign_frame_section.bin', 'https://gist.githubusercontent.com/ebrahimraeyat/7a72a787854de95017f389e2936f75d5/raw', 'cfactor', n=5, ) if not allow: return import etabs_obj etabs = etabs_obj.EtabsModel(backup=False) if not etabs.success: from PySide2.QtWidgets import QMessageBox QMessageBox.warning(None, 'ETABS', 'Please open etabs file!') return False from py_widget.assign import assign_frame_sections win = assign_frame_sections.Form(etabs) Gui.Control.showDialog(win) show_warning_about_number_of_use(check)
def Activated(self): from gui_civiltools.gui_check_legal import ( allowed_to_continue, show_warning_about_number_of_use, ) allow, check = allowed_to_continue( 'high_pressure_columns.bin', 'https://gist.githubusercontent.com/ebrahimraeyat/4800d8c54ee47c50032cd70d45cf43ee/raw', 'cfactor', n=2, ) if not allow: return import etabs_obj etabs = etabs_obj.EtabsModel(backup=False) if not etabs.success: from PySide2.QtWidgets import QMessageBox QMessageBox.warning(None, 'ETABS', 'Please open etabs file!') return False from py_widget.control import high_pressure_columns win = high_pressure_columns.Form(etabs) Gui.Control.showDialog(win) show_warning_about_number_of_use(check)
def Activated(self): from gui_civiltools.gui_check_legal import ( allowed_to_continue, show_warning_about_number_of_use, ) allow, check = allowed_to_continue( 'weakness.bin', 'https://gist.githubusercontent.com/ebrahimraeyat/3c8c1d0229dc76ec23982af1173aa46a/raw', 'cfactor', n=2, ) if not allow: return from py_widget import get_weakness import etabs_obj etabs = etabs_obj.EtabsModel(backup=False) if not etabs.success: from PySide2.QtWidgets import QMessageBox QMessageBox.warning(None, 'ETABS', 'Please open etabs file!') return False win = get_weakness.Form(etabs) Gui.Control.showDialog(win) show_warning_about_number_of_use(check)