Multiple parameters with a text block
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-10-24 06:09 AM
2011-10-24
06:09 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-10-24 06:28 AM
2011-10-24
06:28 AM
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
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-10-24 06:34 AM
2011-10-24
06:34 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-10-24 06:49 AM
2011-10-24
06:49 AM
you many need to convert the room_area into a string try
text2,0,0,str(room_area,2,0) + "m2"
text2,0,0,str(room_area,2,0) + "m2"
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-10-24 07:06 AM
2011-10-24
07:06 AM
That is awesome.
Thanks guys for your help
damien, you are my new god
Thanks guys for your help
damien, you are my new god