We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2008-04-30 11:15 AM
2008-04-30 01:47 PM
2008-05-01 04:31 AM
"James Murray" wrote:
If you want to know the elevation of the bottom, that's GLOB_ELEVATION - SLAB_THICKNESS.
Hi Murry.
Thanks alot for that. I assumed it was going to be something to do with Global something...
Another question. When I use this script, it only shows me the height in metres..
example, I have a 20mm slab set at 2720mm from floor level, but it will show up as 2.7 in the label tool. How do I get it to show 2700 as the height?
Thanks.
2008-05-01 03:55 PM
heightValue= GLOB_ELEVATION-SLAB_THICKNESS labelText=STR("%.0mm", heightValue) TEXT2 0, 0, labelTextAnother way is to have the label find out the current dimension units setting and use that format automatically.
heightValue= GLOB_ELEVATION-SLAB_THICKNESS formatVar="" !! create string variable for request dummy=REQUEST("Level_dimension","",formatVar) !! get format of dim labelText=STR(formatVar, heightValue) TEXT2 0, 0, labelTextThe REQUEST finds out the dim format and puts it in "formatVar", then you use that in the STR instead of "%.0mm".