2024-08-07
04:26 AM
- last edited on
2024-09-24
10:10 AM
by
Doreena Deng
I would like to edit the Surface Label 25 to show the text of a surface before a delimiter. For example:
Surface Name is TC:Timber Cladding
Label to shown only TC
This is the code I have used to get this working on a wall label i wrote a while ago:
!======split
len = STRLEN (string)
iDotPos = STRSTR (string, sep)!sep is the seperator
code = STRSUB (string, 1, iDotPos - 1)
mat = STRSUB (string, iDotPos+1, len-iDotPos)!material
if display_txt = 'code' and code<>"" then
string=code
endif
if display_txt = 'mat' then
string=mat
endif
But I cant figure out where to catch the surface name and split it in this object. I think it might be happening in the macro label_content_macro. Any wizards out there that can figure this out??? @Barry Kelly ?
Of course this would not be required if GS would give us an ID field for surfaces the same as building materials.
Operating system used: Mac Intel-based 12
2026-05-21 09:41 AM
Have you tried accessing the page in a private/incognito mode?
Just checked it that way and it seems to be working on my side.
Dani Benjamin
Technical Support Engineer
2026-05-21 11:15 AM
It is the same for me, still no 'product support'.
And that is again after I allowed all cookies.
Barry.
2026-06-24 09:44 AM
https://community.graphisoft.com/t5/GDL/GDL-Multi-Use-Code-Label/td-p/706119
Fixed mine. Can display the building material, surface, composite or complex profile for most building elements. For building materials, it displays the building material ID of the chosen outside face. For the rest, it splits out the part of the attribute name set by a delimiter. For composites, this allows you to put something like a core code in one part of the name and a unique code in another.
Ling.
| AC22-29 AUS 3200 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | 7800X3D | 32GB | RTX5070TI |
Wednesday
- last edited
Wednesday
by
Laszlo Nagy
Hi Ling
Great object. This should be rolled into the stock label.
I couldn't get the “Building Material” option to work on walls.
I made a different label for this purpose a while ago, the code is probably a mess and it only works on walls. Feel free to nick anything that looks useful.
Thanks for sharing your efforts.
Wednesday - last edited Wednesday
The Building Material option just pulls the Building Material ID rather than the name like the other options. Could give it the option to use the name I guess if you want to store other information there... Was it returned an error for you, or just returning nul?
ps. Oh, the BM option does not work on basic walls... Woops. Assume it is when ever it is a basic element since the SKINS_PARAMS variables do not work with them. I think I have fixed it now.
| AC22-29 AUS 3200 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | 7800X3D | 32GB | RTX5070TI |
Wednesday
Wednesday - last edited Wednesday
Is that an update to the one I updated two hours ago?
I already added the option to swap between BM ID and Name... forgot to note that...
ps. I only recently realised that we can now upload GSM files. Much nicer than having to ZIP things all the time, though that is still good if you have multiple parts.
| AC22-29 AUS 3200 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | 7800X3D | 32GB | RTX5070TI |
Wednesday
haha. No its from the original, I didn't see your update. Yours looks neater.