> For the complete documentation index, see [llms.txt](https://docs.openbrim.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openbrim.org/developers/paramml-developer-guide/function-example/function-example-2.md).

# 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.

```xml
<O N="Bolted Plate 2" T="Project" Category="Function Example">
    <!-- created by ParamML Examples on 07.04.2023 -->
    <O N="Plate1" 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 N="Plate 1 Params" T="Group">
            <P N="w" V="48" D="Plate 1: width of the plate" />
            <P N="h" V="48" D="Plate 1: height of the plate" />
            <P N="t" V="1" D="Plate 1: thickness of the plate" />
            <P N="nr" V="5" D="Plate 1: number of rows" />
            <P N="nb" V="5" D="Plate 1: number of equally spaced bolts per row" />
            <P N="r" V="1" D="Plate 1: radius of bolt hole" />
            <P N="c" V="6" D="Plate 1: clearance from edge" />
        </O>
        <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 N="Plate 2" T="Surface" Y="Plate1.h/2" Z="w/2" RX="PI/2">
        <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 N="Plate 2 Params" T="Group">
            <P N="w" V="48" D="Plate 2: width of the plate" />
            <P N="h" V="48" D="Plate 2: height of the plate" />
            <P N="t" V="1" D="Plate 2: thickness of the plate" />
            <P N="nr" V="5" D="Plate 2: number of rows" />
            <P N="nb" V="5" D="Plate 2: number of equally spaced bolts per row" />
            <P N="r" V="1" D="Plate 2: radius of bolt hole" />
            <P N="c" V="6" D="Plate 2: clearance from edge" />
        </O>
        <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>
```

![](https://openbrim.atlassian.net/wiki/download/attachments/2185200660/image-20230407-144948.png?api=v2) To view this example in the library, see (<https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&obj=objid6vp1017rhlxz4pr1u1r4wq>)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.openbrim.org/developers/paramml-developer-guide/function-example/function-example-2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
