Modeling
About Archicad's design tools, element connections, modeling concepts, etc.

2 line Zone tags

Anonymous
Not applicable
I have a version of Eric Batte's zone tag that has 2 lines for the title of the zone tag by using a / where you want the break. I don't want to use it because then your room names in the schedule has a bunch of / in it and I don't want that. Does anyone have some code I can add to an existing zone tag to make it work (like wrapping the room name and not having to put in others things to make it work?

Thanks for any ideas,
Michele
2 REPLIES 2
Anonymous
Not applicable
I'm going to change the script to say use 2 spaces instead of the forward slash. Then it looks good in plan and it still works for the schedule.

Just thought I's pass the quick fix on,
Michele
TomWaltz
Participant
How's this?
	split_char = "  " ! Two spaces
	
	txlen = STRLEN (Zname)
	tx_split = STRSTR (zname, split_char) 

	IF tx_split <> 0 THEN
		Zname1 = STRSUB(zname, 1, tx_split-1)
		Zname2 = STRSUB(zname, tx_split+2, txlen)
	ELSE 
		Zname1 = ""
		Zname2 = ZNAME
	ENDIF

    	TEXT2 0,-0.7, Zname2
	TEXT2 0, 4.3, Zname1
That's how I modified our Zone tag.
Tom Waltz