Surface Label 20 - Split label with identifier
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-01-19 03:10 AM
2017-01-19
03:10 AM
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 endifAny 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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-01-23 07:04 AM
2017-01-23
07:04 AM
Try using:
string=code + " " + mat
or
string = mat + " " + code
string=code + " " + mat
or
string = mat + " " + code
Ben Hruska
ArchiCAD 3.1 - 24
iMac
ArchiCAD 3.1 - 24
iMac