> For the complete documentation index, see [llms.txt](https://docs.dietrichs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dietrichs.com/dietrichs-intelligent-documentation/francais/ifc-industry-foundation-classes/import-ifc/fichiers-de-classement/conditions-utilisant-des-attributs-librement-definis.md).

# Conditions utilisant des attributs librement définis

Tous les attributs libres peuvent être définis dans IFC. Ils peuvent être utilisés dans des conditions particulières.

* La section est introduite avec : <mark style="background-color:$primary;">**\[ASSIGN ITEM CONDITIONS FREE\_ATTRIBUTES]**</mark>. Il ne peut y en avoir qu’une seule section de ce type sous chaque <mark style="background-color:$primary;">**ASSIGN ITEM**</mark>.
* Les attributs libres (**`properties`**) dans l’IFC regroupés en ensembles d'attributs (**`property sets`**). Le nom complet d'un attribut est donc constitué du nom de l'ensemble (**`IFCPROPERTYSET`**) et des attributs (**`IFCPROPERTYSINGLEVALUE`**). Les deux sont séparés par un tilde **\~**. Exemple :\
  Le **`Propertyset PSet_WindowCommon`** contient l’attribut **`Reference`**. Le nom complet de l'attribut est alors : **`PSet_WindowCommon~Reference`**
* Les **`IfcPropertySets`** doivent être affectés à l’ouverture (**`IfcOpeningElement`**), à la niche (**`IfcOpeningElement[Recess]`**), à la porte (**`IfcDoor`**) ou à la fenêtre (**`IfcWindows`**).
* Une condition est formulée dans chaque ligne.Il est introduit par l'identifiant Condition placé avant le signe égal. Le signe égal est suivi de la condition réelle entre parenthèses.&#x20;

<details>

<summary>Exemple</summary>

..

<mark style="color:blue;">Condition=</mark>(**`PSet_WindowCommon~Reference`**=windoor)

..

</details>

* Si l'attribut libre est un nombre, il est écrit directement&#x20;

<details>

<summary>Exemple</summary>

..

<mark style="color:blue;">Condition=</mark>(**`PSet_WindowCommon~Reference`**=12.365)

..

</details>

* S'il s'agit d'un texte qui commence par un chiffre (seulement à ce moment-là), il doit être écrit entre guillemets.&#x20;

<details>

<summary>Exemple</summary>

..

<mark style="color:blue;">Condition=</mark>(**`PSet_WindowCommon~Reference`**="12.365")

..

</details>

* Si l'attribut libre est une variable booléenne (oui/non, vrai/faux), alors la formulation des valeurs dans IFC doit être respectée :\
  **true** (Oui/vrai) s’écrit "<mark style="color:yellow;">.T.</mark>", **false** (Non/faux) s’écrit "<mark style="color:yellow;">.F.</mark>"; les lettres T et F sont chacune entourées de 2 points.

<details>

<summary>Exemple</summary>

..

<mark style="color:blue;">Condition=</mark>(**`PSet_WindowCommon~Reference`**=.T.)

..

</details>

* Vous trouverez de plus amples informations sur la formulation des conditions dans le document [Variables\_Ud\*.doc](/dietrichs-intelligent-documentation/francais/le-systeme-de-variables.md), sous le chapitre [*Formules conditionnelles, conditions*](/dietrichs-intelligent-documentation/francais/le-systeme-de-variables/formules-et-textes/formules.md#formules-conditionnelles-conditions). Dans les fichiers d'attribution, vous pouvez aussi utiliser les méthodes de référencement et de joker.

<details>

<summary>Exemple</summary>

..

<mark style="color:blue;">Condition=</mark>(**`PSet_WindowCommon~Reference`**=windoor)

..

</details>

## Exemple d'utilisation des attributs libres

<details>

<summary>Exemple</summary>

<mark style="background-color:$primary;">**\[ASSIGN ITEM CONDITIONS FREE\_ATTRIBUTES]**</mark>

<mark style="color:blue;">Condition=</mark>(**`PSet_WindowCommon~Reference`**=windoor)

<mark style="background-color:$primary;">**\[ASSIGN ITEM CONDITIONS FREE\_ATTRIBUTES ENDSEC]**</mark>

</details>


---

# 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.dietrichs.com/dietrichs-intelligent-documentation/francais/ifc-industry-foundation-classes/import-ifc/fichiers-de-classement/conditions-utilisant-des-attributs-librement-definis.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.
