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

Multiple parameters with a text block

Hi,
I am trying to create a script for a zone label to indicate are. i.e. 45.670m2

I cannot workout how to add a simple bit of text "m2" to the end of my parameter.

It seems such a simple thing, which is why I am so frustrated.
If anyone could help, you may save me throwing a fit

Regards,
Tom
4 Replies 4
Erich
Booster
Assuming your text is defined as a variable, let's call it txt. Try:
TEXT2 x, y, txt+" m2"
You need the quotes to tell the program this is a string. Then a space, unless you want everything to run together. Then whatever string you wish.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
Thanks for your reply.
That doesnt work for me for some reason.
I am using it within a zone stamp
so I typed in
text2 0, 0,room_area+" m2"

room_area by itself calls up a area, but adding +" m2" causes errors in the script.

is this because room_area is a standard archicad script rather than a listed parameter
Anonymous
Not applicable
you many need to convert the room_area into a string try
text2,0,0,str(room_area,2,0) + "m2"
Anonymous
Not applicable
That is awesome.
Thanks guys for your help
damien, you are my new god

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!