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

Custom Label

NandoMogollon
Expert
Hi everyone.

I would like to "label" slabs (by clicking on the "label" option on the slab settings), but i want to have the material name of the slab, or the cover fill name be shown on the label, instead of the ID.

It should be possible, because those things (fills, pens, sizes, ID, materials,) are parameters right?

I hope you can help me.

Thanks in advance!!!

Hey... it's Friday so...Cheers!


Nando
Nando Mogollon
Director @ BuilDigital
nando@buildigital.com.au
Using, Archicad Latest AU and INT. Revit Latest (have to keep comparing notes)
More and more... IFC.js, IFCOpenShell
All things Solibri and BIMCollab
3 REPLIES 3
Anonymous
Not applicable
The material name is available to the label using the SLAB_MAT_TOP parameter. This will return the index number of the material so you will need to convert that to the name using the IND function. There is no global parameter available for the cover fill as far as I can see.
NandoMogollon
Expert
Hi, Matthew.

I've been working around this, but i'm not a commonly GDL user.. that is why it takes some time for me to understand some things..

I opened some other objects, and this script seems to work to have the name:

[ temp = request("Name_of_material", slab_mat_top, finmat)
text2 0,0, finmat ]

... now i need to figure how to give it a size and a pencolor... and a font style

Thanks a lot !
Nando Mogollon
Director @ BuilDigital
nando@buildigital.com.au
Using, Archicad Latest AU and INT. Revit Latest (have to keep comparing notes)
More and more... IFC.js, IFCOpenShell
All things Solibri and BIMCollab
Anonymous
Not applicable
You shouldn't need the request function for labels since there are globals specifically available to them. Check the GDL Reference under Miscellaneous > Global Variables > Slab Parameters (page 240 in my copy)