Constructing a simple parametric window

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Willi2006
Posts: 18
Joined: Sun Jan 31, 2021 10:56 pm

Constructing a simple parametric window

Post by Willi2006 »

Currently I'm designing a house with hinged and sliding windows and doors with FreeCAD. At first I mounted windows according to Using_a_preset in Arch_Window. Later I constructed them myself according to Creating_from_scratch in Arch_Window. But when changing the building the windows didn't fit anymore. One window should be larger and have more wings. Another window should be smaller and have less wings. Or I wanted to add or remove fanlights. This meant using another Preset, adopting properties and mounting again. I wished to have a simple parametric window, which can also be a door, can have a fanlight, being sliding or hinged on one or the other side. I also wanted to place it relative to the left side, right side or middle of the wall and of the window. All with parameters for easy changing the placement.

The parametric window is constructed using Part_Box and Draft_LinkArray and the boolean operations Part_Cut and Part_Fuse. With arrays it's easy to make the number of wings and fanlight panels variable. The opening arc is a Part_Cylinder. The arrow is a Part_Wedge. Changing the windows works already. In the spreadsheet the parameters and explanations can be found (Spreadsheet_Workbench).

The placement in the wall is still done manually by copying the Expressions of the wall placement to the window and to the Draft_Clone of the outer box. Adding the Clone to Arch_Wall Subtractions creates the hole.

Later the Spreadsheets are kept in the Group Construction and the windows are kept in a separate Group. Thus the windows are in the tree only onetime and get exported to STEP.
.
WindowParametricExamples.png
WindowParametricExamples.png (111.58 KiB) Viewed 975 times
.
WindowParametricExamples.FCStd
(377.76 KiB) Downloaded 30 times
.
Edit 18/5/2021: Image replaced: Fusion now expanded in the tree view. Cylinder and Wedge described.
.
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (de_DE)
Last edited by Willi2006 on Tue May 18, 2021 5:24 am, edited 2 times in total.
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Constructing a parametric window

Post by bitacovir »

Willi2006 wrote: Mon May 17, 2021 2:26 pm Currently I'm designing a house with hinged and sliding windows and doors with FreeCAD.
Thanks for sharing this workflow. I think we should create a wiki page in OSArch with FreeCAD Arch components like this with its tutorials. I see the courting wall of paullee also for this wiki https://forum.freecadweb.org/viewtopic.php?f=23&t=58480
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
Post Reply