BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Surface Label 20 - Split label with identifier

Anonymous
Not applicable
does anyone know how to edit the Surface Label 20 to provide an option to show before or after an identifier? For Example

Full Surface Name in the format code-description, i.e. CT01-300x300 Ceramic Tile Grey

So you could label the surface with the code, the description or both.

code: CT01
description: 300x300 Ceramic Tile Grey
both: CT01-300x300 Ceramic Tile Grey

The only code I have that does this is below, but I can't figure out how to add it to the Surface Label 20.
	!======split
len = STRLEN (string)
iDotPos = STRSTR (string, sep)
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
Any help with this would be greatly appreciated. The aim of this functionality would let one tag materials like a keynote tool but a lot simpler and more integrated into archicad.
1 REPLY 1
Dukatas
Participant
Try using:

string=code + " " + mat

or

string = mat + " " + code
Ben Hruska
ArchiCAD 3.1 - 24
iMac
Learn and get certified!