cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Requesting 3 letters of a material

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!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!