Function Example 2
Example : Bolted Plate 2
We will extend Bolted Plate 1 example and extend it by positioning another plate in the project. The new plate will be 90 degrees to the side of the first plate.
<br><O N="Bolted Plate 2" T="Project" Category="Function Example"><br> <!-- created by ParamML Examples on 07.04.2023 --><br> <O N="Plate1" T="Surface"><br> <P N="Thickness" V="t" /><br> <P N="spX" V="(w-c*2)/(nb-1)" D="spacing between bolt holes along X direction" /><br> <P N="spY" V="(h-c*2)/(nr-1)" D="spacing between bolt holes along Y direction" /><br> <O N="Plate 1 Params" T="Group"><br> <P N="w" V="48" D="Plate 1: width of the plate" /><br> <P N="h" V="48" D="Plate 1: height of the plate" /><br> <P N="t" V="1" D="Plate 1: thickness of the plate" /><br> <P N="nr" V="5" D="Plate 1: number of rows" /><br> <P N="nb" V="5" D="Plate 1: number of equally spaced bolts per row" /><br> <P N="r" V="1" D="Plate 1: radius of bolt hole" /><br> <P N="c" V="6" D="Plate 1: clearance from edge" /><br> </O><br> <O T="Point" X="-w/2" Y="-h/2" Z="0" /><br> <O T="Point" X="w/2" Y="-h/2" Z="0" /><br> <O T="Point" X="w/2" Y="h/2" Z="0" /><br> <O T="Point" X="-w/2" Y="h/2" Z="0" /><br> <O T="Repeat"><br> <P N="S" V="0" /><br> <P N="I" V="1" /><br> <P N="E" V="nr-1" /><br> <P N="CTRL" V="j" T="Text" /><br> <P N="j" V="0" /><br> <O T="Repeat"><br> <P N="S" V="0" /><br> <P N="I" V="1" /><br> <P N="E" V="nb-1" /><br> <P N="CTRL" V="i" T="Text" /><br> <P N="i" V="0" /><br> <P N="locX" V="-w/2 + c + spX * i" D="X location of the bolt hole" /><br> <P N="locY" V="-h/2 + c + spY * j" D="Y location of the bolt hole" /><br> <O T="Circle" X="locX" Y="locY"><br> <P N="IsCutout" V="1" /><br> <P N="Radius" V="r" /><br> </O><br> </O><br> </O><br> </O><br> <O N="Plate 2" T="Surface" Y="Plate1.h/2" Z="w/2" RX="PI/2"><br> <P N="Thickness" V="t" /><br> <P N="spX" V="(w-c*2)/(nb-1)" D="spacing between bolt holes along X direction" /><br> <P N="spY" V="(h-c*2)/(nr-1)" D="spacing between bolt holes along Y direction" /><br> <O N="Plate 2 Params" T="Group"><br> <P N="w" V="48" D="Plate 2: width of the plate" /><br> <P N="h" V="48" D="Plate 2: height of the plate" /><br> <P N="t" V="1" D="Plate 2: thickness of the plate" /><br> <P N="nr" V="5" D="Plate 2: number of rows" /><br> <P N="nb" V="5" D="Plate 2: number of equally spaced bolts per row" /><br> <P N="r" V="1" D="Plate 2: radius of bolt hole" /><br> <P N="c" V="6" D="Plate 2: clearance from edge" /><br> </O><br> <O T="Point" X="-w/2" Y="-h/2" Z="0" /><br> <O T="Point" X="w/2" Y="-h/2" Z="0" /><br> <O T="Point" X="w/2" Y="h/2" Z="0" /><br> <O T="Point" X="-w/2" Y="h/2" Z="0" /><br> <O T="Repeat"><br> <P N="S" V="0" /><br> <P N="I" V="1" /><br> <P N="E" V="nr-1" /><br> <P N="CTRL" V="j" T="Text" /><br> <P N="j" V="0" /><br> <O T="Repeat"><br> <P N="S" V="0" /><br> <P N="I" V="1" /><br> <P N="E" V="nb-1" /><br> <P N="CTRL" V="i" T="Text" /><br> <P N="i" V="0" /><br> <P N="locX" V="-w/2 + c + spX * i" D="X location of the bolt hole" /><br> <P N="locY" V="-h/2 + c + spY * j" D="Y location of the bolt hole" /><br> <O T="Circle" X="locX" Y="locY"><br> <P N="IsCutout" V="1" /><br> <P N="Radius" V="r" /><br> </O><br> </O><br> </O><br> </O><br></O><br>

To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&obj=objid6vp1017rhlxz4pr1u1r4wq)
Last updated