cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

code for text poping up

Anonymous
Not applicable
Does anyone know how to code a roomtag so that when the square foot of the zonetag goes over a certain size a warning text comes up. I can make the text white so it doesn't show up on plans.

Thanks for any help,
Michele
4 REPLIES 4
Anonymous
Not applicable
Hi Michele,

Use the print command...

PRINT expression [, expression, ...]
Writes all of its arguments in a dialog box. Arguments can be strings or numeric expressions of any number in any sequence, separated by
commas.
Examples:
if dim>x then PRINT "Opssss"
PRINT J, K-3*L
PRINT "Beginning of interpretation"
PRINT a * SIN (alpha) + b * COS (alpha)
PRINT "Parameter values: ", "a = ", a, ", b = ", b
PRINT name + STR ("%m", i) + "." + ext
Anonymous
Not applicable
If you want it to display on the plan you can do something like:
IF room_area > max_area THEN
    TEXT2 x1, y1, "Max area exceeded"
ENDIF
Note that the variable names (lower case) are just examples that I made up. You would need to chose whatever works for you and make sure they have the right values.

Keep in mind that the white text will still obscure whatever lies under it.
Anonymous
Not applicable
Thanks,
I'll have to also make a toggle to turn it off once I've seen the warning text.

Thanks again,
Michele
Michele wrote:
I'll have to also make a toggle to turn it off once I've seen the warning text.
What I've seen people do is create a scale-sensitive toggle in the script, use some scale that never goes to production drawings for this type of checks with script-generated information, and save that into a view. That way you don't need to mess around with object settings, and your production views and drawings are always clean and final.