# Component Search for Connections

Connections are made at various points within the HRB module. For example, between transoms and posts or between posts and sills/frames. Different situations can arise that the program should detect and handle correctly and as automatically as possible. Therefore, with V22.01 new clear and comprehensible rules were implemented:

<figure><img src="/files/b41f9e589f6e288500163bcc6df4fa804e34a8fb" alt=""><figcaption></figcaption></figure>

Bar 1 always terminates at the tip of the red arrow after the connection.

* A1, A2, A3: As soon as the bar to be connected (Bar 1) penetrates a component with its end or terminates flush against it, a connection is made there. A more distant component is ignored. Once a component has been found, the program continues to search whether another component fulfills the rule. Therefore, in cases A1 and A2 the connection is not made at the upper of the two frames, but the program continues checking, finds the second frame and then connects there.
* B1, B2: If no connecting component is found, the 'maximum extension for searching' from the HRB connection is used. Bar 1 is extended by this amount and the search is performed within the extension area. If Bar 1 then touches or penetrates one or more components, the nearest of these is selected. This also applies if Bar 1 only touches component 2, as in case B2.
* C1: If no component is found even after extending, the next component is taken, even if Bar 1 must be shortened for that purpose.


---

# Agent Instructions: 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:

```
GET https://docs.dietrichs.com/dietrichs-intelligent-documentation/docs-de-en/holzrahmenbau-kompendium/prinzipien-des-hrb-systems/hrb-regelungen/bauteilsuche-bei-anschlussen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
