Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Example : Bolted Plate 1

Code Block
languagexml
<O N="Bolted Plate 1" T="Project" Category="Function Example 1">
    <!-- created by ParamML Examples on 07.04.2023 -->
    <O N="Parameters" T="Group">
        <P N="w" V="48" D="width of the plate" />
        <P N="h" V="48" D="height of the plate" />
        <P N="t" V="1" D="thickness of the plate" />
        <P N="nr" V="5" D="number of rows" />
        <P N="nb" V="5" D="number of equally spaced bolts per row" />
        <P N="r" V="1" D="radius of bolt hole" />
        <P N="c" V="6" D="clearance from edge" />
    </O>
    <O N="Plate" T="Surface">
        <P N="Thickness" V="t" />
        <P N="spX" V="(w-c*2)/(nb-1)" D="spacing between bolt holes along X direction" />
        <P N="spY" V="(h-c*2)/(nr-1)" D="spacing between bolt holes along Y direction" />
        <O T="Point" X="-w/2" Y="-h/2" Z="0" />
        <O T="Point" X="w/2" Y="-h/2" Z="0" />
        <O T="Point" X="w/2" Y="h/2" Z="0" />
        <O T="Point" X="-w/2" Y="h/2" Z="0" />
        <O T="Repeat">
            <P N="S" V="0" />
            <P N="I" V="1" />
            <P N="E" V="nr-1" />
            <P N="CTRL" V="j" T="Text" />
            <P N="j" V="0" />
            <O T="Repeat">
                <P N="S" V="0" />
                <P N="I" V="1" />
                <P N="E" V="nb-1" />
                <P N="CTRL" V="i" T="Text" />
                <P N="i" V="0" />
                <P N="locX" V="-w/2 + c + spX * i" D="X location of the bolt hole" />
                <P N="locY" V="-h/2 + c + spY * j" D="Y location of the bolt hole" />
                <O T="Circle" X="locX" Y="locY">
                    <P N="IsCutout" V="1" />
                    <P N="Radius" V="r" />
                </O>
            </O>
        </O>
    </O>
</O>
Image Added

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