diff options
Diffstat (limited to 'Connections/Shear/Finplate/colWebBeamWebConnectivity.py')
-rw-r--r-- | Connections/Shear/Finplate/colWebBeamWebConnectivity.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Connections/Shear/Finplate/colWebBeamWebConnectivity.py b/Connections/Shear/Finplate/colWebBeamWebConnectivity.py index b49670b..8adc0c2 100644 --- a/Connections/Shear/Finplate/colWebBeamWebConnectivity.py +++ b/Connections/Shear/Finplate/colWebBeamWebConnectivity.py @@ -13,6 +13,7 @@ import copy from OCC.BRepPrimAPI import BRepPrimAPI_MakeSphere from OCC.gp import gp_Pnt from nutBoltPlacement import NutBoltArray +from OCC.BRepAlgoAPI import BRepAlgoAPI_Cut class ColWebBeamWeb(object): @@ -117,9 +118,14 @@ class ColWebBeamWeb(object): def get_nutboltmodels(self): - return self.nutBoltArray.getModels() #return self.nutBoltArray.getboltModels() - + + def get_beamModel(self): + finalBeam = self.beamModel + nutBoltlist = self.nutBoltArray.getModels() + for bolt in nutBoltlist[0:(len(nutBoltlist)//2)]: + finalBeam = BRepAlgoAPI_Cut(finalBeam,bolt).Shape() + return finalBeam
\ No newline at end of file |