BIM Coordinator Program (INT) April 22, 2024

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

Wishes
Post your wishes about Graphisoft products: Archicad, BIMx, BIMcloud, and DDScad.

Door Leaf Material Passing

vfrontiers
Enthusiast
I'd like to be able to pass the DOOR LEAF MATERIALS to a CUSTOM DOOR PANEL I create...

Even if I revise the script and parameters of the leaf to gs_leaf_mat, it does not get passed from the host door...

In addition, if I choose CUSTOM PANEL, the leaf surface parameters are HIDDEN...

I just find two good reasons for this.....
1. I use the same door with different materials in the same file...
2. When trying to use the same panel from project to project, it's hit & miss whether the material ID's match..
Duane

Visual Frontiers

AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion

DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop
6 REPLIES 6
Lingwisyer
Guru
Broader wish

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
vdentello
Advocate
Whenever you generate a custom leaf from slabs, you'd probably be looking at a couple cprism_{4} scripts inside the custom object´s 3D script.

They'll have a "dumb" building material assigned to them.

By opening it's GDL 3D script, you cant tweak the c_prism{4} to something like this:
cprism_{4} gs_leaf_mat,  gs_leaf_mat,  gs_leaf_mat, 7,
...

In order for this to work, you have to assign some of the Archicad Library's native surface parameter like gs_leaf_mat or gs_leaf_matin.

This is quite easy even with very little GDL skill.
Archicad User Since 2013
GDL Developer
Experimenting with API
from Brazil
Lingwisyer
Guru
vdentello wrote:
In order for this to work, you have to assign some of the Archicad Library's native surface parameter like gs_leaf_mat or gs_leaf_matin.

I have not been able to get this to work in the past? Can you share an example object of where you have gotten this to work?

As explained in this thread, it is due to the Door Panel Collection call not passing on any parameters.



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
vdentello
Advocate
Forgot that we must also "comment" or remove the "Set Building Material" and substitute all "bms" with something usual.



Archicad User Since 2013
GDL Developer
Experimenting with API
from Brazil
Lingwisyer
Guru
IF not(WIDO_REVEAL_SIDE) then

	!*** default placement

	topmat=gs_leaf_matin
	botmat=gs_leaf_mat
	sidemat=gs_leaf_matin
	sidematedge=gs_leaf_matin
else

	!*** flip

	topmat=gs_leaf_mat
	botmat=gs_leaf_matin
	sidemat=gs_leaf_mat
	sidematedge=gs_leaf_matin
endIF


sprism_{2} topmat, botmat, sidemat,
	5,
	0,  0, 	1,  0,  framethick, 0,
	0,  0, 	1,  0,  0,  		0,
	-a/2,						R4,		H2, 	sidematedge,
	-a/2 + gs_fw_side_right, 	R3,		15, 	sidemat,
	-a/2 + gs_fw_side_right,	b - R1,	H1, 	sidemat,
	-a/2,						b - R2,	15, 	sidematedge,
	-a/2,						R4,		-1, 	sidematedge

Does it only work with cprism?



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
vdentello
Advocate
It should work with any command, as long as the default materials are correctly set.
Archicad User Since 2013
GDL Developer
Experimenting with API
from Brazil
Learn and get certified!