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
2 weeks ago
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
2 weeks ago
It is the same for me, still no 'product support'.
And that is again after I allowed all cookies.
Barry.