BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.
SOLVED!

Wallhole Materials

Lingwisyer
Guru
Hi all,

Does anyone know how the default doors and windows modify the material of the hole they create within a wall?



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Lingwisyer
Guru
Coolios. That was easy enough. Two niches, one for the interior, one for the exterior. Creates a hole with four options for the material; inside, outside, side, wrap.

If gs_wall_mat = "Interior" then
		SET MATERIAL WALL_MAT_A
	else
		If gs_wall_mat = "Side" then
				SET MATERIAL WALL_MAT_EDGE
			else
				SET MATERIAL WALL_MAT_B
		endIf
endIf

WallNiche 4, 1, 2,
	0,	0,	1,	-WIDO_SILL,
	0,	0,	0,
	A,	0,	0,
	A,	B,	0,
	0,	B,	0

If gs_wall_mat = "Wrap" then
		SET MATERIAL WALL_MAT_A
endIf

WallNiche 4, 1, 2,
	0,	0,	1,	WALL_THICKNESS,
	0,	0,	0,
	A,	0,	0,
	A,	B,	0,
	0,	B,	0


Ling.

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

View solution in original post

2 REPLIES 2
Barry Kelly
Moderator
I believe it is just a case of setting the material before the WALLHOLE commend.

I actually use the WALLNICHE command so I can get a different material on the inside and outside.
I just set it to match the internal and external wall surfaces.
I also set a different pen for the internal and external lines so I can change them if I need to.

Something like this.

m1=1	!!the polygon will create a visible edge upon entry into the body being cut
m2=1	!!depth - the lengthwise edge of the cutting form will be visible
m3=1	!!the polygon will create a visible edge upon exiting the body being cut
m4=0	!!outside - the bottom edge of the cutting form will be visible
m5=0	!!inside - the top edge of the cutting form will be visible
m7=0	!!controls the viewpoint dependent visibility of the lengthwise edge

PEN pen_lin
MATERIAL WALL_MAT_B
WALLNICHE 4, 1, 1*0 + 2*1 + 8*0 + 16*0 + 32*0 + 64*0 + 128*0,
0, 0, 1, -K_-extend_niche,
	-(a*0.5),0,1*m1 + 2*m2 + 4*m3 + 8*m4 + 16*m5 + 64*m7,
	(a*0.5),0,1*m1 + 2*m2 + 4*m3 + 8*m4 + 16*m5 + 64*m7,
	(a*0.5),b,1*m1 + 2*m2 + 4*m3 + 8*m4 + 16*m5 + 64*m7,
	(-a*0.5),b,1*m1 + 2*m2 + 4*m3 + 8*m4 + 16*m5 + 64*m7


PEN pen_lin_int
MATERIAL WALL_MAT_A
WALLNICHE 4, 1, 1*0 + 2*1 + 8*0 + 16*0 + 32*0 + 64*0 + 128*0,
0, 0, 1, C_-K_+extend_niche,
	-(a*0.5),0,1*m1 + 2*m2 + 4*m3 + 8*m4 + 16*m5 + 64*m7,
	(a*0.5),0,1*m1 + 2*m2 + 4*m3 + 8*m4 + 16*m5 + 64*m7,
	(a*0.5),b,1*m1 + 2*m2 + 4*m3 + 8*m4 + 16*m5 + 64*m7,
	(-a*0.5),b,1*m1 + 2*m2 + 4*m3 + 8*m4 + 16*m5 + 64*m7
Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Solution
Lingwisyer
Guru
Coolios. That was easy enough. Two niches, one for the interior, one for the exterior. Creates a hole with four options for the material; inside, outside, side, wrap.

If gs_wall_mat = "Interior" then
		SET MATERIAL WALL_MAT_A
	else
		If gs_wall_mat = "Side" then
				SET MATERIAL WALL_MAT_EDGE
			else
				SET MATERIAL WALL_MAT_B
		endIf
endIf

WallNiche 4, 1, 2,
	0,	0,	1,	-WIDO_SILL,
	0,	0,	0,
	A,	0,	0,
	A,	B,	0,
	0,	B,	0

If gs_wall_mat = "Wrap" then
		SET MATERIAL WALL_MAT_A
endIf

WallNiche 4, 1, 2,
	0,	0,	1,	WALL_THICKNESS,
	0,	0,	0,
	A,	0,	0,
	A,	B,	0,
	0,	B,	0


Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Learn and get certified!