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

Requesting 3 letters of a material

Anonymous
Not applicable
I would like to have a set up, with the material name starting as a code and then a description, such as (Mt2 - Metal copper). Is it possible to request, on the GDL script, only the first 3 letters of a material to be used as a material TAG. It would be useful to have this as a wall material label on elevations.
BTW, I know I can simply change the material names to Codes...
2 REPLIES 2
Anonymous
Not applicable
HI,

with the help of REQUEST you can get the name of the material. The STRSUB is cutting the characters.

Eg.:
qq = REQUEST ("name_of_material", your_mat, get_mat)
firstThreeChar = STRSUB(get_mat, 1, 3)

Regards,
Anonymous
Not applicable
Nice one! Thannnnnnnk you

It is working like a charm!