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

changing material of called object

Anonymous
Not applicable
I know it's not a 'good' thing to call an object but I did it and have a need to change the material of it now. I can only give a material name and not a parameter variable
Here is the line I need to change:
This works- gs_fill_pen = 91, gs_back_pen = 91, gs_prim_mat = IND(MATERIAL,"Surf-Whitewash"),

This does not work- gs_fill_pen = 91, gs_back_pen = 91, gs_prim_mat = IND(MATERIAL,"parameter_value"),


Here is the called object:


CALL "Cylinder 10" PARAMETERS A = 0'-0.0000", B = 10'-0.0000",
ZZYZX = 0'-8.0000", gs_detlevel_3D = "Detailed", radius_1 = 5'-0.0000",
radius_1_gc = 5'-0.0000", end_mode = "Perpendicular", edit_mode = "Angle-Length",
gamma = 90, length = 0'-8.0000", dist_x = 0'-0.0000",
dist_y = 0'-0.0000", angle_1 = 60, angle_2 = 45,
gs_resol = 36, gs_shadow = 1, AC_show2DHotspotsIn3D = 0,
gs_cont_pen = 2, gs_fill_type = IND(FILL,"Empty Fill"),
!gs_fill_pen = 91, gs_back_pen = 91, gs_prim_mat = IND(MATERIAL,"Surf-Whitewash"),
gs_fill_pen = 91, gs_back_pen = 91, gs_prim_mat = IND(MATERIAL,"parameter_value"),

!gs_fill_pen = 91, gs_back_pen = 91, gs_prim_mat = IND(MATERIAL,"0_PHM Blue"),
gs_list_cost = 0, gs_list_manufacturer = "",
gs_list_note = "", gs_list_location = "", gs_list_accessories = "",
FM_Type = "Others", FM_InventoryNumber = "", FM_SerialNumber = "",
FM_ProductionYear = "", FM_ObjectWeight = 0,
FM_ObjectWeightUnit = "kg", gs_list_custom1 = "", gs_list_custom2 = "",
gs_list_custom3 = "", gs_list_custom4 = "", gs_list_custom5 = ""
DEL 2

Tthanks,
Michele
2 REPLIES 2
Anonymous
Not applicable
Michele,
Is "parameter_value" the name of a material defined in
the parameter list of the calling object ?
If not try creating a material type parameter called
"cylmat" or something like that in the calling objects
parameter list then in the script for calling the cylinder write:

gs_fill_pen = 91, gs_back_pen = 91, gs_prim_mat = cylmat

Unless I completely misunderstand, this should work.
Peter Devlin
Anonymous
Not applicable
Thanks it worked great