Tutoriel BIM

From FreeCAD Documentation
Revision as of 11:34, 24 October 2020 by David69 (talk | contribs) (Created page with "Une autre façon de déplacer notre dalle à sa position correcte, est d'utiliser l'outil 16px '''Move''' du menu '''Modify'''. Pour cela, nous devons...")
Other languages:

Cette documentation n'est pas terminée. Merci de nous aider et de contribuer à la documentation.

Modèle GuiCommand explique comment les commandes doivent être documentées. Parcourez Category:UnfinishedDocu pour voir d'autres pages incomplètes comme celle-ci. Voir Category:Command_Reference pour toutes les commandes.

Voir Écrire une page Wiki pour apprendre à éditer les pages du wiki, et aller à Contribuer à FreeCAD pour apprendre d'autres façons de contribuer.

Tutorial steps

Il s'agit du tutoriel de l'atelier BIM. Il n'est pas destiné à être lu ici sur le wiki, mais plutôt à être démarré depuis FreeCAD, dans l'atelier BIM, sous le menu Aide -> Tutoriel BIM. Il comprend une série d'étapes à effectuer par l'utilisateur. Chaque étape se termine par une instance du modèle {{BIMTutorialAction|descr|goal1|test1|goal2|test2}} qui informe de la condition qui doit être remplie. Les images doivent avoir une largeur de 300 pixels. Aucune image SVG ne doit être utilisée sur cette page car elles ne sont pas prises en charge par le widget QTextBrowser



Bienvenue dans l'atelier BIM!

Ce tutoriel vous guidera à travers les différentes fonctionnalités de l'atelier BIM et vous aidera à vous mettre en piste en modélisant un bâtiment de pavillon très simple. Cela devrait prendre entre une et deux heures pour le terminer entièrement, selon votre expérience antérieure avec les applications 3D.

Vous pouvez l'interrompre à tout moment et le reprendre plus tard, en sélectionnant le menu Aide -> Écran de bienvenue puis en cliquant à nouveau sur l'élément Tutoriel BIM.

Certaines étapes de ce didacticiel nécessitent que vous preniez des mesures. Celles-ci seront indiqués sous cette zone de texte, avec une icône indiquant si la tâche est terminée ou non. Mais comme nous sommes de personnes sympathiques ici à FreeCAD, il n'est pas obligatoire de terminer les actions pour avancer dans ces pages. Vous pouvez simplement parcourir le didacticiel et ignorer les actions à votre convenance.

À propos des versions de FreeCAD

Ce tutoriel est écrit pour la la version de développement la plus récente de FreeCAD disponible (actuellement la version 0.19). L'atelier BIM, cependant, est conçu pour être compatible avec n'importe quelle version de FreeCAD. Si vous utilisez une version de FreeCAD antérieure à celle indiquée ici, certains outils BIM peuvent avoir un aspect différent, fonctionner différemment ou même ne pas être disponibles. Reportez-vous à la documentation pour en savoir plus en cas de doute.

Remarque

Ce tutoriel est toujours en cours d'écriture et est donc incomplet ! Si vous avez des suggestions ou des choses que vous trouvez floues, pourquoi ne pas nous aider à l'améliorer sur le forum FreeCAD !

Tutorial steps

Aucune action à effectuer pour cette étape



Configurez FreeCAD

FreeCAD a un système de préférences conséquent avec de nombreuses options à définir, situé dans le menu Édition-> Préférences . Chaque atelier supplémentaire peut ajouter d'autres pages de préférences, ce qui le rend très complexe.

L'atelier BIM fournit un écran de configuration simplifié, qui permet de définir rapidement certaines des préférences les plus utiles pour le travail avec BIM. L'écran des préférences BIM se trouve sous le menu Préférences -> Configuration BIM (vous pouvez également cliquer sur le bouton correspondant dans la barre d'outils Gérer) :

Ouvrez maintenant l'écran simplifié des préférences BIM et définissez les différentes options à votre guise.

En cas de besoin, passez la souris sur une option ou un paramètre pour voir une description de son utilisation :

Dans ce tutoriel, nous travaillerons en centimètres. Nous vous suggérons donc de définir les unités préférées sur centimètres et la taille par défaut du carré de la grille sur 10 cm. Ces paramètres peuvent être modifiés à tout moment à partir du bouton du plan de travail situé sur les barres d'outils principales et de l'indicateur d'unités situé sur la barre d'état (en bas à droite):

Tutorial steps

Ouvrez l'écran de configuration de BIM
True if hasattr(FreeCADGui,"BIMSetupDialog") else False
Réglez les unités en centimètres et la taille de la grille sur 10 cm
True if ((FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Units").GetInt("UserSchema",0) == 4) and (FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft").GetFloat("gridSpacing",10) == 100)) else False



Créez un nouveau document

Si vous venez d'installer FreeCAD, vous consultez probablement actuellement la page de démarrage de FreeCAD :

La page de démarrage répertorie les derniers documents avec lesquels vous avez travaillé et, sur ses différents onglets, explique comment obtenir de l'aide. Mais pour commencer à travailler, nous devons créer un nouveau document vide. Si vous ne l'avez pas encore fait, créez maintenant un nouveau document en utilisant l'élément "Créer nouveau ..." de la page de démarrage, ou en accédant au menu Fichier -> Nouveau :

Vous vous retrouverez alors dans l'espace 3D de FreeCAD, prêt à travailler :

Tutorial steps

Créer un nouveau document
True if FreeCAD.ActiveDocument else False



Naviguer dans la vue 3D

Il existe plusieurs façons d'interagir avec la souris dans FreeCAD. Ils sont appelés styles de navigation. Vous pouvez modifier le style de navigation actuel à tout moment en cliquant sur le bouton de style de navigation dans la barre d'état. Passer la souris sur ce bouton vous montrera également ce que fait chaque bouton de la souris. Plusieurs d'entre eux sont conçus pour correspondre à d'autres applications bien connues. Choisissez celui avec lequel vous êtes à l'aise.

Le contrôle de la façon dont vous regardez votre modèle dans la vue 3D peut être effectué de plusieurs manières: à l'aide de la souris (selon le style de navigation que vous avez choisi), du clavier (explorez le contenu de le menu Affichage pour en savoir plus) ou le Cube de navigation (cliquez sur les différentes flèches et faces du cube pour aligner la vue).

Tutorial steps

Choisissez un style de navigation
True
Choisissez Vue de dessus
True if FreeCADGui.ActiveDocument.ActiveView.getViewDirection().getAngle(FreeCAD.Vector(0,0,-1)) < 0.01 else False



Réorganiser l'interface

Tous les panneaux et barres d'outils de FreeCAD peuvent être déplacés et réorganisés. Les panneaux plus grands peuvent également être joints en les faisant glisser et en les déposant sur un autre. Si votre écran est trop petit pour afficher toutes les barres d'outils et leur contenu (les barres d'outils tronquées apparaîtront avec un signe >>), il peut être judicieux de les déplacer vers une meilleure position.

Les barres d'outils et les panneaux peuvent également être activés et désactivés à partir du menu Affichage.

L'atelier BIM comporte également des boutons de commutation dans la barre d'état, qui active et désactive des panneaux supplémentaires tels que la vue de sélection, la vue de rapport et la console Python. Ces panneaux sont souvent utiles lorsque vous travaillez avec FreeCAD, mais ils utilisent un espace d'écran précieux. Vous pouvez généralement tout désactiver jusqu'à ce que vous en ayez besoin. N'oubliez pas que les messages d'erreur sont imprimés dans la fenêtre de rapport, donc en cas de problème, assurez-vous d'y jeter un œil.

Tutorial steps

Aucune action à effectuer pour cette étape



Outils de l'atelier BIM

L'atelier BIM contient des outils empruntés à d'autres ateliers tels que Arch, Draft ou Part, ainsi que quelques-uns de leurs outils. Ceux-ci sont organisés en plusieurs catégories. Chaque catégorie a un menu et une barre d'outils. Prenez un moment pour explorer le contenu des menus décrits ci-dessous.

Dessin 2D

Ces outils vous permettent de dessiner des objets plats, tels que des lignes, des polylignes, des rectangles, des arcs, etc... qui deviendront les bases de vos objets BIM. Par exemple, vous pouvez utiliser une polyligne pour définir la trace de base d'un mur ou un rectangle comme profil pour une poutre. Tous les objets 2D sont créés dans le plan de travail.

Modélisation 3D et BIM

Cette catégorie contient des outils pour créer des objets BIM tels que murs ou fenêtre et des objets 3D génériques non BIM tels que boîtes, que vous pouvez tourner dans des objets BIM ultérieurement. Le résultat est différent si vous utilisez l'outil avec un objet sélectionné ou non. Sinon, une interface de création vous sera présentée. Si vous avez sélectionné un objet avant d'exécuter l'outil, un objet du type correspondant sera créé en utilisant l'objet sélectionné comme base.

Un exemple typique est d'appuyer sur le bouton mur avec un ligne ou polyligne sélectionné. Un mur sera créé automatiquement en utilisant la ligne ou la polyligne comme ligne de base.

Les objets non BIM, y compris les objets créés dans d'autres ateliers, peuvent être transformés à tout moment en objets BIM en les sélectionnant et en appuyant sur l'un des boutons de l'outil BIM.

Annotation

Ces outils produisent des objets annotatifs tels que des cotes, des textes, des étiquettes ou des grilles, qui ne sont pas utilisés pour la modélisation mais pour annoter vos modèles et produire des dessins compréhensibles.

Accrochage

Ces outils activent/désactivent les accrochages. Comme dans la plupart des applications BIM, chaque position d'accrochage supplémentaire ajoute du temps de calcul lors du dessin, il est donc préférable de ne garder que celles dont vous avez besoin activées.

Modifier

Ces outils modifient les objets existants. Ils contiennent des outils de transformation habituels tels que Déplacer ou Rotation, ainsi qu'une série d'autres qui ne fonctionnent que pour des types d'objets spécifiques.

Gérer

Cette catégorie contient des outils de gestion générale. La plupart d'entre eux vous permettent de modifier simultanément les propriétés BIM d'un grand groupe d'objets sans avoir à les sélectionner.

Chaque outil contenu dans ces menus possède sa propre page de documentation qui décrit en détail son fonctionnement et les options disponibles. Ils sont listés sur la page atelier BIM, également accessible depuis le menu Aide ou en utilisant le menu Aide -> Qu'est-ce que c'est? Et en cliquant sur n'importe quel bouton de la barre d'outils.

Tutorial steps

Aucune action à effectuer pour cette étape



Préparez votre espace de travail

Il existe de nombreuses façons de créer des objets BIM dans FreeCAD. Vous pouvez utiliser les outils BIM natifs de cet atelier ou utiliser n'importe quel autre outil FreeCAD d'autres ateliers. Les outils de dessin 2D et les outils BIM 3D de cet atelier, contrairement à d'autres ateliers tels que Part Design, utilisent largement les plans de travail et l'accrochage.

Le plan de travail est l'endroit où vos prochains objets seront créés. Vous pouvez le définir sur l'un des plans orthogonaux de base (sol, avant, côté) ou utiliser n'importe quelle face sélectionnée pour définir le plan de travail courant. Vous pouvez également utiliser des plans proxy de travail du menu Utils pour stocker une position spécifique du plan de travail dans votre modèle. Partie de bâtiment contient également une position implicite du plan de travail. Le changement du plan de travail actuel se fait en appuyant sur le bouton du plan de travail dans la barre d'outils BIM. La grille reflète toujours l'emplacement du plan de travail.

Comme vous l'aurez remarqué, l'angle de vue et le plan de travail ne sont pas liés. Vous pouvez travailler sur votre plan de travail sous n'importe quel angle de vue.

Réglez maintenant le plan de travail en mode "Haut":

Les outils d'accrochage vous permettent de placer de nouveaux objets et points précisément en fonction de la géométrie existante. Cependant, l'activation de nombreux emplacements d'accrochage peut ralentir les opérations de dessin, il est donc judicieux de n'activer que les outils d'accrochage que vous souhaitez utiliser. Prenez un moment pour passer en revue ce que chacun d'eux fait, afin que, si nécessaire, vous saurez lequel peut être désactivé.

Faites particulièrement attention au dernier, l'outil Accrochage du plan de travail car il forcera tout point cassé à se trouver sur le plan de travail, vous empêchant ainsi de vous enclencher au-dessus ou sous le plan de travail. Vous devrez souvent l'activer ou la désactiver, selon l'opération que vous effectuez.

Tutorial steps

Réglez le plan de travail en mode "Top" (XY)
True if ((FreeCAD.DraftWorkingPlane.axis.getAngle(FreeCAD.Vector(0,0,1)) < 0.01) and (FreeCAD.DraftWorkingPlane.weak == False)) else False
Passez en revue les différents outils d'accrochage
True



Dessiner un premier mur

Commençons à construire notre pavillon en créant des murs. Les murs peuvent être dessinés soit directement avec l'outil mur, soit en dessinant d'abord des objets 2D tels que lignes, fil (polylignes) ou esquisses qui définiront la ligne de base de nos murs. Lorsque vous avez sélectionné un tel objet de ligne de base, le fait d'appuyer sur l'outil Mur le convertira automatiquement en mur.

Commencez par effectuer un zoom arrière jusqu'à ce qu'une bonne partie ou la totalité de la grille soit visible. Cela permettra de voir beaucoup plus facilement ce que nous faisons:

Ensuite, appuyez sur le bouton Mur dans la barre d'outils (ou choisissez l'élément de menu 3D/BIM -> Mur). Cliquez sur deux points de la grille, alignés verticalement, distants de 300 cm. Appuyer sur SHIFT après avoir cliqué sur le premier point vous aidera à maintenir votre mur horizontal ou vertical. Le panneau latéral vous informera de la longueur du mur lors du dessin.

Si vous avez créé un mauvais mur, pas de soucis! Supprimez-le ou annulez-le simplement (menu Édition -> Annuler) et réessayez.

Tutorial steps

Créer un mur
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "MakeBlocks" in o.PropertiesList]) == 1)



Dessiner un second mur

Faites un deuxième mur horizontal de 4 mètres (ou 400 centimètres) de long. Sélectionnez à nouveau l'outil Mur, effectuez un panoramique et un zoom arrière jusqu'à ce que vous voyiez une bonne zone de la grille, puis choisissez deux points dans la grille pour définir les points de départ et de fin du nouveau mur:

Une fois qu'ils sont créés, sélectionnez les deux murs en appuyant sur CTRL et en cliquant dessus tous les deux dans la vue 3D ou dans la vue arborescente, et ajustez leur propriété height (hauteur) à 2,5 mètres et leur width (largeur)à 20 centimètres (ou toute autre mesure avec laquelle vous êtes à l'aise, si vous travaillez dans une autre unité), et donc ils ressemblent à ceci (Utilisez la souris pour faire pivoter la vue, en fonction du style de navigation que vous avez choisi):

Vous pouvez toujours corriger ou modifier les propriétés après la création d'un mur ou de tout autre objet BIM. En développant l'objet mur dans l'arborescence, puis en double-cliquant sur la ligne de base du mur, vous pouvez également modifier son objet 2D de base. La plupart des objets BIM de FreeCAD sont basés sur un autre objet, tel qu'une ligne de base ou un profil.

Remarque importante

Vous remarquerez que certaines modifications de propriété, dans FreeCAD, ne se reflètent pas immédiatement sur l'objet dans la vue 3D. Au lieu de cela, l'objet est marqué d'une marque bleue "à recalculer" dans l'arborescence:

La raison en est qu'un document FreeCAD peut être une chaîne très complexe d'objets interdépendants. Une mise à jour peut déclencher une mise à jour sur beaucoup d'autres objets et donc prendre du temps. Pour éviter cela, certaines opérations marquent simplement l'objet à recalculer, et vous déclenchez le recalcul vous-même en utilisant le menu Edition -> Actualiser ou en appuyant sur Ctrl+R.

Tutorial steps

Créer deux objets mur orthogonaux
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "MakeBlocks" in o.PropertiesList]) == 2)
Régler leur hauteur à 2,50 mètres et leur largeur à 20 centimètres
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "MakeBlocks" in o.PropertiesList and o.Height.Value == 2500 and o.Width.Value == 200]) == 2)



N'oubliez pas de sauvegarder le fichier régulièrement!

Comme toute autre application informatique, FreeCAD est susceptible de malfonctionner ou de planter, surtout lorsque nous en avons peu d'expérience. Enregistrer souvent votre fichier est une très bonne habitude à prendre dans ces premiers instants. FreeCAD dispose également d'un mécanisme d'enregistrement automatique, que vous pouvez configurer dans le menu Édition -> Préférences -> Général -> Document.

Enregistrez votre fichier maintenant en utilisant le menu Fichier -> Enregistrer.

Tutorial steps

Enregistrez votre fichier
bool(FreeCAD.ActiveDocument.FileName)



Dessiner une dalle de toit

Nous allons maintenant placer une dalle de toit sur nos murs. Au lieu de dessiner directement la dalle, comme nous l'avons fait avec les murs, nous allons d'abord dessiner un rectangle, puis transformer le rectangle en dalle. Nous allons maintenant explorer deux méthodes pour ce faire, les deux sont utiles à connaître, nous vous suggérons donc d'en essayer une d'abord, puis de l'annuler (ou de recharger le fichier) et essayer l'autre méthode.

Méthode 1: dessinez la dalle au sol, puis déplacez-la en position

Il est souvent pratique de considérer le plan XY supérieur (le plan du sol) comme une sorte de "planche à dessin", où nous construirons nos objets, puis nous nous déplacerons à côté de leur position correcte. Il y a un avantage supplémentaire ici: notre plan de travail est déjà en mode "Top" donc nous n'avons pas besoin de le changer.

Placez-vous en vue de dessus, effectuez un zoom arrière jusqu'à ce que vous voyiez les deux murs et dessinez un rectangle les englobant tous les deux. Appuyez sur le bouton Rectangle dans la barre d'outils (ou choisissez l'élément de menu 2D Drafting -> Rectangle):

Faites pivoter votre vue pour inspecter les résultats. Par défaut, le rectangle est fait d'une face. Cela peut être changé en changeant la propriété Make Face de notre rectangle sur False. Pour la dalle que nous allons construire, cela n'a aucun impact, pour d'autres types d'objets, cependant, l'objet de base étant une polyligne ou une face peut faire la différence.

L'étape suivante consiste à construire une dalle en "extrudant" celle-ci avec notre rectangle comme son "profil" de base. Dans FreeCAD, les objets structurels tels que les poteaux, les poutres ou les dalles sont tous fabriqués avec un même objet, appelé Structure. Après la création d'un objet structurel, il suffit de définir la propriété Type IFC sur le type souhaité (colonne, dalle, etc.) pour changer son type.

Assurez-vous que notre rectangle est sélectionné, puis appuyez sur le bouton Slab dans la barre d'outils (ou choisissez l'élément du menu 3D/BIM -> Slab) . Comme indiqué ci-dessus, cela peut également être fait avec les outils Column (Colonne) ou Beam (Poutre), car ils produisent tous le même type d'objet. Une fois notre objet créé, nous devons apporter les modifications suivantes à ses propriétés:

  • Réglez Height à 20 cm
  • Vérifiez que IFC Type est défini sur Slab

Nous devons maintenant déplacer notre nouvelle dalle de toit dans sa position correcte, c'est-à-dire au-dessus des murs. Il faut donc le déplacer vers le haut, dans la direction Z, d'une distance de 250 cm, qui est la hauteur de nos murs. Nous pouvons simplement modifier la propriété Placement de notre dalle, étendre son attribut Position et définir la valeur de z sur 250 cm. Notre dalle est maintenant bien en place:

Une autre façon de déplacer notre dalle à sa position correcte, est d'utiliser l'outil Move du menu Modify. Pour cela, nous devons d'abord définir notre plan de travail dans un plan vertical, en appuyant sur le bouton plan de travail (assurez-vous qu'aucune face n'est sélectionnée ), et le régler sur XY (avant). En nous plaçant en vue de face (appuyez sur la touche 1), nous pouvons maintenant sélectionner la dalle, appuyer sur le bouton Déplacer, et déplacer notre dalle en cliquant sur l'un de ses points de base et, en appuyant sur Shift pour restreindre le mouvement verticalement, cliquez sur un point au-dessus des murs:

Method 2: Draw the slab directly in the correct plane

Another useful method is directly working on the intended plane. We can easily set the working plane to the top surface of the walls, which is where we want our slab. Selecting a face and pressing the working plane button sets the working plane to coincide with the selected face. Select the top face of the wall and set it as the current working plane. The placement of the grid moves to show the current working plane.

Everything we draw from now on will happen in that plane. If you like, you can now set yourself in top view, but this is not necessary. Once your working plane is set, and if working plane snapping is enabled, you can draw directly in any type of 3D view.

Once our rectangular profile is drawn, we can follow the same method as in method one to create a slab (select it, press the Structure button, adjust its properties).

Tutorial steps

Create a rectangle
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "Rectangle" in o.Name]) == 1)
Create a 20cm thick slab
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "IfcType" in o.PropertiesList and o.IfcType == "Slab" and o.Height.Value == 200]) == 1)



Create a metallic column

Let's add a metallic column to give better support to our slab. Make sure the working plane is in Top mode, let's start by putting ourselves in top view (press key 2), and turn the slab off, so we see better what's underneath. Select the slab, and press the Space key to turn its display off.

In FreeCAD, it is very easy to turn objects or groups on and off, and the tree shows you clearly what is shown and what is hidden. Be sure to use that often!

The Column tool (as well as the Beam tool) has some built-in profiles that we will use now. Make sure nothing is selected, then press the Column button. In the Structure options, select CTH:

And click a point to place your column, more or less at this position. Make sure the new column has an IFC Type of "Column" and give it a Height of 250cm to make it the same height as our walls.

Unfortunately, the CTH preset has only one diameter option of 42mm, which is very thin to support our concrete roof slab. Fortunately, as everything is parametric, it is easy to change the diameter. Expand the new structural object in the tree view, and you will find its profile object, named CTH423. Change its diameter to 12cm and its thickness to 8mm. Now we have a strong enough column. Notice that you can specify units on the fly and switch between 0,8cm and 8mm without issue. FreeCAD will take care of conversion.

Add a support plate

We need a way to attach our metal column to the concrete slab. So let's add a plate to its top, which can be bolted to the concrete slab. This will illustrate how you can easily modify BIM objects and create the very precise ones you need.

Let's start by changing the height of our column from 250cm to 249cm, to give it a space for a 1cm-thick plate. Then draw a 20cm x 20cm rectangle, either on the ground plane or by setting the top of the column as the current working plane, as we learned in the previous step. Use the Move tool, with midpoint and center snaps turned on, if needed, to center the rectangle over the column center.

Using the Slab tool again, create a structural object from the rectangle, give it a height of 1cm, and move it to a height of 249cm:

Now let's add our plate to the column. BIM objects in FreeCAD have two properties named Additions and Subtractions that can receive objects that need to be unioned or subtracted to/from them. To add the plate to our column, select the plate, then, with Ctrl pressed, select the column and use the Add tool from the Modify menu. Our plate is now part of the column:

By starting from simple shapes as profiles, and adding or subtracting objects, we can quickly create very complex BIM objects. Note that the Additions and Subtractions of a given BIM object can easily be changed by double-clicking them in the tree view and using the Add and Remove buttons there. Also, a same object can be used as an addition or subtraction to multiple other objects.

Tutorial steps

Create a CTH tubular column
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "CTH" in o.Label]) == 1)
Add a 20cm x 20cm plate to the column
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "Shape" in o.PropertiesList and (abs(o.Shape.Volume - 7409000) < 10000)]) == 1)



Ajouter des fenêtres et des portes

Like columns and beams, doors and windows are created with a same Window object in FreeCAD. Only their IFC type changes. They can be independent or, if an object is selected when running the tool, inserted in another BIM object, in which case they will automatically create a hole through it.

Let's insert a 80cm x 210cm glass door in one of our walls. Start by placing the working plane on a face of a wall, which will make it easier to precisely place our window:

Then, with the wall selected, select Door from the BIM menu. Select the Glass door preset, and set the Width to 80cm and Height to 210cm. You can set the other values as you like:

Click a point on the base of the wall where you wish to place the window. This can be difficult, as the grid lines don't necessarily correspond to the wall edges. Press the Q key while you have an active snap at a grid intersection, and press it again with an active snap on the bottom of the wall. FreeCAD will create a new snap point where their horizontal/vertical axis intersect. Use this to find a suitable point:

If your door didn't get placed correctly, try the Move tool to move it to its correct position. Otherwise use undo or delete it from the model tree and try again.

When everything is done, you should obtain a door properly inserted into its wall:

Tutorial steps

Create a glass door
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "Window" in o.Name]) == 1)



Organizing our model

We now have in our model a growing collection of BIM objects. It is time to tidy things up. Creating well organized models, easily understandable by others, is a very important part of building quality BIM models.

A first very simple and very good habit to take is to give proper and meaningful names to our objects, so we can easily identify them in the tree view later on. To rename an object, right-click it in the tree view and choose Rename. A model where components are easily identifiable by others is a huge part of what makes a good BIM model.

Another interesting operation to do is grouping. Groups allow you to organize your objects in the tree view, like files and folders. An object can only belong to one group. Groups are created by right-clicking the document root or any other group in the tree view, and selecting Create group. You can then drag objects in and out of groups in the tree view.

A third way to organize things is by using layers. Layers are independent to groups, you can use both systems at the same time if you wish. Like groups, layers allow you to easily turn on/off a series of objects, but unlike groups, they cannot be stacked inside one another. They also allow you to override visual settings such as color and line width of their child objects. Layers are created and managed using the Layers manager tool found under menu Manage -> Layers manager. Objects are added or removed by dragging them in and out of layers in the tree view.

The Layer selector on the main toolbars allow you to set a current layer. After doing so, any new 2D or BIM object will automatically be placed in that layer.

Finally, BIM applications usually allow you to group objects into levels (or storeys) and buildings. FreeCAD offers these tools as well under the 3D/BIM modeling menu. Like beams and columns, levels and buildings use a same object type called Building Part with a different IFC type. They work the same way as groups, once created, you can drag and drop any object in and out of it. Building Parts are compatible with groups, so you can place groups inside them.

Building Parts have many other uses, refer to their documentation to know more.

Create a Building Part now by selecting Level from the 3D/BIM Modeling menu. Make sure its IFC type is set to Building Storey, and drag all our other root BIM objects (no need to do so with included objects like the door or the plate of the column) into it, that is, our two walls, the roof slab and the metal column.

Note that, as Building Parts are generic building components, you are not forced to organize your model by levels in FreeCAD. You can choose to group your elements differently. But the IFC format expects things to be grouped by level, so if you plan to use that format, it is best to consider your Building Parts as levels.

Tutorial steps

Create a level
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "BuildingPart" in o.Name]) == 1)
Add the four other root BIM objects to it
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "BuildingPart" in o.Name and (len(o.Group) == 4)]) == 1)



Adding section planes

One of the most commonly operations done with a BIM model is to extract 2D drawings from it, such as plans or elevations. There are several ways to do that in FreeCAD, depending on the result you wish to obtain. Basically, you can choose between producing the 2D result inside the 3D space, which is useful if you wish to rework it there, build further on it or better control how it is exported to formats like DXF or DWG, or on a TechDraw sheet that is better suited for impression or export to PDF. In both cases, it starts with placing a Section Plane in your model:

  1. Select the Level object that contains your objects, that we created in the last step
  2. Add a Section Plane from menu Annotations->Section Plane

Section planes don't cut through the whole model, but only through objects in their Objects property. You can check and change the contents of this property anytime.

By default, the new section plane will be placed in the middle of the selected object or its contents, and will look downwards, as to create a floor plan view. But the section plane is an object like any other and can be moved and rotated to do what you need. Place it horizontally to create a plan view, vertically inside your model to create a section, or outside the model to create an elevation.

Tutorial steps

Select the main Building Part
bool(len([o for o in FreeCADGui.Selection.getSelection() if "BuildingPart" in o.Name]) == 1)
Create a section plane
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "Section" in o.Name and (len(o.Objects) == 1) and ("BuildingPart" in o.Objects[0].Name)]) == 1)



Extracting 2D views as geometry

Once your section plane is in place, we can now create 2D geometry from what it sees using the Shape2DView tool:

  1. Select the section plane
  2. Create a Shape 2D View using Modify->Shape 2D View
  3. Our view object is hidden under the walls. Turn the display of the level and the section plane off by selecting them both in the tree view and pressing the Space key, so we can view our result better

The 2D view we created is a all-in-one 2D object and will be located on the (0,0) ground plane in the model. It can be moved around, and will be recalculated if the model changes.

To create thicker lines for cut areas, you can create another Shape 2D view, and set its projection mode to "Cut Lines" or "Cut Faces", and uncheck the "Place at origin" property. You will then have two objects, one for viewed lines and one for cut lines, for which you can give different line thicknesses.

Tutorial steps

Select the section plane
bool(len([o for o in FreeCADGui.Selection.getSelection() if "Section" in o.Name]) == 1)
Create a Shape 2D View
bool(len([o for o in FreeCAD.ActiveDocument.Objects if "Shape2DView" in o.Name]) == 1)



Annotating and exporting to 2D CAD formats

You can place Texts, Labels (text with line and arrow), Dimensions on anything in the model space: Either directly on the 3D model, or on the 2D view that we created in the step above. The choice is yours, depending on what you wish to achieve. If you leave the 2D view exactly under the 3D model, you might also want to do both in one go.

Annotations (texts, labels, dimensions) will be placed on the current Working Plane. Be sure to place your working plane where you want your annotations. You can this way place annotations in any plane of the 3D space: Horizontally or vertically. You can also move or rotate them after creation.

Let's place a horizontal dimension between the extremities of our two walls:

  1. Set the working plane to Top position
  2. Orient your view to be able to view the base of both walls
  3. Choose menu Annotations -> Dimension
  4. Click a first point at the extremity of the left wall
  5. Press SHIFT to constrain the dimension vertically or horizontally
  6. Click a second point at the extremity of the right wall
  7. Click a third point to indicate where to place the dimension line

Dimensions have a lot of settings to tweak their aspect and the size and type of the text and arrow. You can set your preferred defaults under menu Edit->Preferences->Draft->Text and Dimensions.

Now let's add a text:

  1. Choose menu Annotations -> Text
  2. Click a location in the 3D view to place the text
  3. Write the text you wish, for example Pavilion, then click the Create Text button or press Enter twice.

A good idea is to create Groups for the different sets of annotations (plan, section, different scales, etc...):

  1. Create a group by right-clicking the document root and select Create group, rename it to "Annotations"
  2. Select the annotations we created above in the tree and drag and drop them into the group

Exporting to DXF

2D objects such as lines or circles or 2D views as we created above or annotations are very suited to export to traditional 2D CAD formats such as DXF or DWG. The DWG format requires an additional piece of software to be installed on your system, check the instructions to do that if needed.

Let's try to export our 2D work to DXF:

  1. Select the 2D view, the dimension and the text
  2. Select menu File->Export, choose the Autodesk DXFformat, a file name, and press Export

If you don't use any 2D CAD program, there are several free and open-source applications that can open DXF files (apart from FreeCAD itself, o course!) such as LibreCAD.

Tutorial steps

Create a dimension
bool(len([obj for obj in FreeCAD.ActiveDocument.Objects if "Dimension" in obj.Name]))
Create a text
bool(len([obj for obj in FreeCAD.ActiveDocument.Objects if "Text" in obj.Name]))



Creating 2D geometry on a printable sheet

Printable sheets are created and managed with the TechDraw Workbench. Let's create a new sheet and place a view of our model on it:

1. Switch to the TechDraw Workbench 2. Create a new empty sheet using the default template from menu TechDraw -> Insert default page 3. Select the section plane 4. Create a view on the page using TechDraw -> Arch View

... Et ainsi de suite

Tutorial steps

No action to perform for this step



Exporting an IFC file

The IFC, or Industry Foundation Classes, is a protocol and file format aimed at interchanging BIM model between applications. By saving your model as an IFC file, you will be able to open it in most or all other open-source or proprietary BIM applications out there.

IFC import/export operations in FreeCAD are performed by an external piece of software called IfcOpenShell. Read the Arch IFC page to learn further about how to install it.

Once IfcOpenShell is installed, exporting your model as an IFC file is as simple as selecting the objects you wish to export, or just the top container (group or Building Part) that contains all other objects you wish to export, and use menu File->Export and choose the IFC file format.

Finally, once you have exported an IFC file, it is always a good idea to inspect it before sending it to other people, to make sure the model looks good and no object is missing. There are many free IFC viewer applications available on the internet for many platforms. A good, open-source viewer that works on all platforms is IFC++.

Tutorial steps

Open the BIM preflight tool and run all the tests
True if (hasattr(FreeCADGui,"BIMPreflightDone") and (FreeCADGui.BIMPreflightDone == True)) else False



Managing BIM properties

A huge part of what makes a good BIM model are the non-geometry properties that you can give to your objects, such as type, material, or properties specific to a certain type. For example, a wall can be marked as load-bearing or not. Or as exterior or interior. The IFC format is very rich in that regard. The amount of specifications and properties you want to give your objects depends mostly on your needs and how you work with others and what they expect your BIM model to contain.

One thing is important to keep in mind: all BIM/Arch objects in FreeCAD support the full set of IFC properties. Other FreeCAD objects, such as those modeled with other workbenches, will also be exported to IFC but you cannot change any of their IFC properties. You can however convert any FreeCAD object to a BIM object by selecting the object and using 3D/BIM -> Create Component.

The main pieces of information you can give your objects are:

Name and description

This seems obvious, but the simplest way to make your model more understandable to others is to properly name each of your objects, and, if relevant, add a description. This is done simply by selecting an object, and pressing F2, or change its Label property to rename it. The Description will be found among the object properties.

The BIM/IFC type

This is the most fundamental piece of information. In FreeCAD, an object created with the wall tool will have its IFC type set to "Wall" by default. But you can change this anytime. So you can use the wall tool to model a beam for example. You only need to change its IFC type after creating it. To change the IFC type of an object, select it, find its IFC Type in its properties, and change to another type from the drop-down list.

You can also bulk-manage names, types and materials of several objects at a time using the IFC elements manager found under menu Manage->IFC elements.

Materials

Each object of a construction has a material. So it makes sense to give each object of your model a proper material, such as concrete or wood. To attribute a material to an object, select the object, and use the materials manager from menu Manage->Materials.

Properties

Each BIM object can also receive additional properties, for example to indicate that a wall is load-bearing or not. IFC allows you to add custom properties to just anything, but most types such as Wall or Beam also have special, predefined sets of properties, usually named Pset_WallCommon or Pset_BeamCommon. You can choose to add these sets to your objects, modify the value of the properties contained in the set, or add your custom properties. Managing the IFC properties for a selected object or bulk edit the properties of several objects at a time is done using the properties manager under menu Manage->IFC properties.

Quantities

Quantities such as length or width or height of a wall can also be specifically written to an IFC file. They are not linked to the geometry of the object, so when meeting such quantities in an IFC file there is no guarantee that they reflect the actual object geometry. However, these quantities allow applications that are not able to process the geometry, such as spreadsheet applications, to know the principal dimensions of objects. You can check which quantities will be exported to IFC using the quantities manager found under menu Manage->IFC quantities.

The IFC format has many particularities and sometimes the application you will be opening your IFC file with or the person who will receive your IFC file will have further requirements. Becoming a fluent BIM modeller often means to get familiar with all these particularities and what needs to be added or specified to your BIM model. The BIM workbench of FreeCAD provides a BIM Preflight tool that allows you to check your model for several of these particularities and most common requirements, and help you decide what to include in your model or not.

Tutorial steps

No action to perform for this step



Explore other BIM tools and other workbenches

Take a moment to explore the other available BIM tools. Remeber that some are still not finished, and might not do everything you expect from them. Use the "What's this?" button found in menu Help to open the help page of any tool. The FreeCAD forum is also always a good place to search or ask when encountering a specific problem you cannot solve.

FreeCAD is a big family of workbenches, and tools from other workbenches often come in handy. As we saw above, almost any object created from other workbenches can be turned into a valid BIM object, simply using the 3D/BIM -> Create component tool and giving it the correct IFC type.

There are more tutorials about BIM and other workbenches in the Tutorials section of the FreeCAD documentation, and a complete video series of BIM tutorials on youtube.

Tutorial steps

No action to perform for this step



Help FreeCAD to become a better tool!

FreeCAD is free software, developed by an enthusiast community of users, some of them developing code, and many others contributing in one form or another to make the software better, being writing documentation, finding and reporting bugs, submitting ideas, writing tutorials, and many other things. The more and more active we are, the faster the software gets developed further. Why not join us? A good place to start is the BIM section on the FreeCAD forum. See you there!

Tutorial steps

No action to perform for this step