diff options
author | deepa-chaudhari | 2015-06-09 23:34:49 +0530 |
---|---|---|
committer | deepa-chaudhari | 2015-06-09 23:34:49 +0530 |
commit | a616a1848684ad4b29c2910057495e1515aaa61f (patch) | |
tree | b031fd3aa490985d2e55be2ea124ae833bf2951b /Connections/Shear/Finplate/finPlateMain.py | |
parent | e76128ffa9619c6db5935ae773c915c32f7190e9 (diff) | |
download | OsdagLive-a616a1848684ad4b29c2910057495e1515aaa61f.tar.gz OsdagLive-a616a1848684ad4b29c2910057495e1515aaa61f.tar.bz2 OsdagLive-a616a1848684ad4b29c2910057495e1515aaa61f.zip |
implemented nutboltassemblly with row and column
Diffstat (limited to 'Connections/Shear/Finplate/finPlateMain.py')
-rw-r--r-- | Connections/Shear/Finplate/finPlateMain.py | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/Connections/Shear/Finplate/finPlateMain.py b/Connections/Shear/Finplate/finPlateMain.py index d3509b1..2501eff 100644 --- a/Connections/Shear/Finplate/finPlateMain.py +++ b/Connections/Shear/Finplate/finPlateMain.py @@ -132,7 +132,7 @@ class MainController(QtGui.QMainWindow): # self.memberlist = [my_box, my_cylendar, my_cylendar] #my_sphere = BRepPrimAPI_MakeSphere(5).Shape() - self.fuse_model = self.create2Dcad() + #self.fuse_model = self.create2Dcad() #self.fuse_model = my_sphere @@ -757,7 +757,7 @@ class MainController(QtGui.QMainWindow): colflangeconn = ColFlangeBeamWeb(column,beam,weld,plate,boltRadius,nutRadius) return colflangeconn.create_3dmodel() - def call_3DModel(self): + def call_3DModelduplicate(self): self.display.EraseAll() uiObj = self.getuser_inputs() resultObj = finConn(uiObj) @@ -780,11 +780,31 @@ class MainController(QtGui.QMainWindow): plateOrigin = connectivity.plate.secOrigin gpPntplateOrigin= getGpPt(plateOrigin) my_sphere = BRepPrimAPI_MakeSphere(gpPntplateOrigin,2).Shape() - self.display.DisplayShape(my_sphere,update=True) + #self.display.DisplayShape(my_sphere,update=True) else: self.display.DisplayMessage(gp_Pnt(1000,0,400),"Sorry, can not create 3D model",height = 25.0) + def call_3DModel(self): + if self.ui.btn3D.isEnabled(): + self.ui.chkBxBeam.setChecked(QtCore.Qt.Unchecked) + self.ui.chkBxCol.setChecked(QtCore.Qt.Unchecked) + self.ui.chkBxFinplate.setChecked(QtCore.Qt.Unchecked) + self.ui.mytabWidget.setCurrentIndex(0) + + if self.ui.comboConnLoc.currentText()== "Column web-Beam web": + connectivity = self.colWebBeamWeb + else: + self.ui.mytabWidget.setCurrentIndex(0) + connectivity = self.createColFlangeBeamWeb() + + self.display3Dmodel(connectivity.get_models(), "Model") + plateOrigin = connectivity.plate.secOrigin + gpPntplateOrigin= getGpPt(plateOrigin) + my_sphere = BRepPrimAPI_MakeSphere(gpPntplateOrigin,2).Shape() + self.display.DisplayShape(my_sphere,update=True) + + def call_3DBeam(self): ''' Creating and displaying 3D Beam |