Wishes forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Door Leaf Material Passing

vfrontiers
Contributor
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
AC22 6021:|: AC24 4007:|: Enscape3:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti
6 REPLIES 6

Lingwisyer
Virtuoso
Broader wish
AC18-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200

vdentello
Contributor
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
Virtuoso
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.
AC18-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200

vdentello
Contributor
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
Virtuoso
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.
AC18-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200

vdentello
Contributor
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

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!