cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Ahmed_K
Mentor

Add a macro to an Archicad window

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: 

  • the box is centered to the window 
  • the box volume is substracted from the wall
  • I can edit box sizes from window settings box.

Thanks a lot.

 

Ahmed_K_0-1770028951577.png

 

Operating system used: Windows 11

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects
18 Replies 18
Ahmed_K
Mentor

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     ​

      
Ahmed_K_0-1770919824935.png

 

 

Cavity is not substracted here 

 

How can i fix it  please

 
 
AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects
Lingwisyer
Guru

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 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
Ahmed_K
Mentor

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

 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects
Ahmed_K
Mentor

i think , almost of users , if they get complex profiles extrusion and substruction made easy in gdl , that will sole 90% of coding headache , 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects
Lingwisyer
Guru

Every time I have used Complex Profiles, I have just copied the working code from another object...

AC22-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
Ahmed_K
Mentor

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

 

Ahmed_K_0-1771176523369.png

 

 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects
Ahmed_K
Mentor

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

 

 

Ahmed_K_0-1771177489725.png

 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects
Lingwisyer
Guru

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 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
David Maudlin
Rockstar

@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

David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC29 USA Perpetual • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro OSX14 | 36 gb ram

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!