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

Surface Label 20 - Split label with identifier

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

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!