Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Window label with elevation to project zero?

Anonymous
Not applicable
Hello

I would like to script a window label that would indicate the elevation of window sill relative to project zero.

So far I have succeeded in making it work as long as the wall base is the same as the story base, like this:

str("%+1.3m",AC_GLOB_ELEVATION+GLOB_HSTORY_ELEV)

But I don't know how to make the label read the elevation of the WALL base relative to story base elevation.

Does anyone know how this could be achieved, or if it's just impossible?
17 REPLIES 17
Frank Beister
Moderator
Try this one:
ac_wall_elevation or ac_glob_elevation

And there's a bug in reference height to current story of windows visible in other than home stories.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Anonymous
Not applicable
I am having no luck with ac_wall_elevation...
My string now looks like this:

str("%+1.3m",AC_GLOB_ELEVATION+GLOB_HSTORY_ELEV+AC_WALL_ELEVATION)

I have also tried adding the parameter "ac_wall_elevation" in both the label AND the window object parameters

However, when I change the wall elevation (and the window ascends and descends with the wall) the label does not change... the number shown is still as if the wall base was the same as the story base...

Laszlo Nagy
Community Admin
Community Admin
Maybe it doesn't matter at all because GDL is not case sensitive as far as I know, but the "GLOB_XXXXX" variables are always all UPPERCASE, the "ac_xxxxx" variables are always all lowercase.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Anonymous
Not applicable
No the case doesn't seem to matter... I tried changing it consistently to lower case - no effect. And it seems lower_case, UPPER_CASE, and Mixed_Case are used interchangeably without problems, in the objects I am trying to tweak.
But thanks anyway for the suggestion!
Really I find it hard to believe that a marker associated with a window would not be able to query the elevation of the parent wall? But maybe they didn't come to think of that when they wrote the gdl specs. Well for now I must resort to writing the value manually.
Laszlo Nagy
Community Admin
Community Admin
Maybe it is too many levels.
I mean, a Window knows certain variables about the Wall it is in.
A Window label knows certain variables about the Windows it is associated with.
But a Window label to know about the Wall into which its associated Window is placed: could be a limitation.
I will forward this to GS.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Anonymous
Not applicable
is this what you are looking for?

WIDO_RSIDE_SILL_HEIGHT+WALL_POSITION[3]
Frank Beister
Moderator
I have lost a lot of time in finding the following bug:

"HOME_STORY, used in marker objects, always returns the home story of the wall, not of the window. A wall, visible over three stories can have in each story other openings. The markers of the openings return always the home story of the wall."

Maybe there are more bugs in this ambient. Just keep a focus on this and try it in further versions. Just a hint.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Ben Cohen
Advocate
Try "ac_glob_elevation - length
elevation of the base line of the opening"

Found here


http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/14/LibDevGuid...
Ben Cohen
Mac and PC
Archicad (Latest Version) aus
www.4DLibrary.com.au
Anonymous
Not applicable
Thank you all for your replies!

Ben: ac_glob_elevation only tells me the height of the window sill from the wall bottom. I get that working all right.

F_beister: my windows are in the home story of the walls so your bug does not affect my case. Anyhow I got the window marker to read the elevation of the home story all right. The problem is, my window marker cannot seem to get hold of the measurement from the story base level to the wall bottom level.

Master script: I tried your suggestion, with the result that it always returns +0.000. Apparently these variables are not available to a window marker?

If anyone still has the patience to make any suggestions, they are more than welcome! It may also be that there is some stupid mistake in my code, my GDL skill is mostly limited to tweaking existing objects so I don't always quite understand everything that's going on there.