2026-02-02
11:42 AM
- last edited on
2026-02-02
12:13 PM
by
Laszlo Nagy
Hi,
I created a simple box with GDL, this is like a concrete window sill, which should be placed under the sill finish.
I want to link that box as a macro the the default Archicad windows, can someone explain the process please?
What I need:
Thanks a lot.
Operating system used: Windows 11
2026-02-12
07:11 PM
- last edited on
2026-02-14
09:03 PM
by
Laszlo Nagy
So , i called the original window , it works : Call "Object name " PARAMETERS ALL
Now i called the box macro,
that macro is supposed to create a hole inside the wall ,
the 3D code is the following
ADDX -A/2
ADDY -Ha-0.02
! ADDY ...
BODY -1
BLOCK A, Ha, Pa
BODY 1
DEL 1
Cavity is not substracted here
How can i fix it please
2026-02-13 02:10 AM - edited 2026-02-13 03:08 AM
So your box macro has a WALLHOLE in it? Do note, that you will have to replace your wall finish where it overlaps with your WALLHOLE or WALLNICHE.
| AC22-29 AUS 3200 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
2026-02-13 09:27 AM
i found in the gdl manual that i can use body -1 command to do subtraction , i didn't use wellhole because it creates a hole throughout the wall , wallniche seems to be the best choice, but i didn't figure out how to use it .
All i need is :
a box that substract a part inside the wall
and
A shape generated from a complex profile ( from profile manager ) that can do the same job
2026-02-13 11:14 AM
i think , almost of users , if they get complex profiles extrusion and substruction made easy in gdl , that will sole 90% of coding headache ,
2026-02-14 04:06 PM
Every time I have used Complex Profiles, I have just copied the working code from another object...
| AC22-29 AUS 3200 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
2026-02-15 06:30 PM
Hello again !
And here is the result :
with this technique i can add some nice functionalities to the default window ,
Thanks to @Bruce for his priceless YouTube tutorials .
I'm not sure about that serie of DEL1 , but if it works don't touch it 😂🤣
pen Sty_Vu_Appuis_beton
sect_attrs{2} Sty_Coup_Appuis_beton , Lin_Appuis_beton
MATERIAL mat_Appuis_beton
ADDX -A/2
ADDZ Ep_fin_int
ADDY -H_app_bet - Dec_app_bet
ADDx -Deb_app_bet_G
BLOCK larg_Total, H_app_bet, Ep_Total ! Votre bloc (Largeur, Profondeur, Hauteur)
ADDZ Ep_Total
WALLNICHE 4,1,2+16*0,
0,0,-1,P_app_bet,
0,0,8,
larg_Total,0,8,
larg_Total,H_app_bet,8,
0,H_app_bet,8
DEL 1
del 1
DEL 1
DEL 1
DEL 1
2026-02-15 06:45 PM
Hello again ,
Finally it works , at the moment haha
one small problem , it doesn't flip when i change the wall reference position
pen Sty_Vu_Appuis_beton
sect_attrs{2} Sty_Coup_Appuis_beton , Lin_Appuis_beton
MATERIAL mat_Appuis_beton
ADDX -A/2
ADDZ Ep_fin_int
ADDY -H_app_bet - Dec_app_bet
ADDx -Deb_app_bet_G
BLOCK larg_Total, H_app_bet, Ep_Total ! Votre bloc (Largeur, Profondeur, Hauteur)
ADDZ Ep_Total
WALLNICHE 4,1,2+16*0,
0,0,-1,P_app_bet,
0,0,8,
larg_Total,0,8,
larg_Total,H_app_bet,8,
0,H_app_bet,8
DEL 1
del 1
DEL 1
DEL 1
DEL 1
2026-02-16 02:03 AM - edited 2026-02-16 02:05 AM
There are 8 possible variable combinations for the opening direction. There is a post somewhere regarding it. SYMB_MIRRORED, SYMB_ROTANGLE and WIDO_REVEAL_SIDE. So you will need to flip your additions in accordance.
https://gdl.graphisoft.com/gdl-basics/simple-doors-and-windows/
| AC22-29 AUS 3200 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
2026-02-16 01:54 PM
@Ahmed_K wrote:
...I'm not sure about that serie of DEL1 , but if it works don't touch it 😂🤣
pen Sty_Vu_Appuis_beton sect_attrs{2} Sty_Coup_Appuis_beton , Lin_Appuis_beton MATERIAL mat_Appuis_beton ADDX -A/2 ADDZ Ep_fin_int ADDY -H_app_bet - Dec_app_bet ADDx -Deb_app_bet_G BLOCK larg_Total, H_app_bet, Ep_Total ! Votre bloc (Largeur, Profondeur, Hauteur) ADDZ Ep_Total WALLNICHE 4,1,2+16*0, 0,0,-1,P_app_bet, 0,0,8, larg_Total,0,8, larg_Total,H_app_bet,8, 0,H_app_bet,8 DEL 1 del 1 DEL 1 DEL 1 DEL 1
The DEL 1 undo the previous transformations (ADDX, ADDY, ADDZ) so they are removed after the WALLNICHE is made. They could be replaced by a DEL 5 in this case, but as you said "if it works don't touch it".
David