cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

Door/Window Sides Material

Anonymous
Not applicable
I have a stone wall that I am putting in custom gdl doors & windows. The sides of the Wallhole are showing as stone, but I want them to be white. Is there a way to programmatically change this wallhole side material? Would this be the built-in variable "ac_wallholematerial"?

Thanks in advance for any help.
3 REPLIES 3
Anonymous
Not applicable
Hi,
you can always code your door or windows with some prisms of the white material near the frame.
One problem is it will be seen in lists.
Hope it helps
Barry Kelly
Moderator
Make sure your WALLHOLE command uses the status code of "2".
Then you can set any material you want before the wall hole.

i.e.
material side_mat
WALLHOLE 4,2,
	-(a*0.5),0,15,
	(a*0.5),0,15,
	(a*0.5),b,15,
	(-a*0.5),b,15
For a wall that has different materials on the inside and outside you can match those on the side return by using 2 WALLNICHE commands instead of one WALLHOLE.
Set the material to the same as that for the inside and outside wall face.

i.e.
extend_niche = 0.1          !! this just ensures the niche extends outside the wall

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


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


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
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Thank you to both of you for responding.