Window label with elevation to project zero?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-02-24
02:37 PM
- last edited on
2023-05-24
12:37 PM
by
Rubia Torres
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-02-24 02:56 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-03-02 12:46 PM

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...


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-03-03 10:57 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-03-04 09:16 AM
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.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-03-04 07:25 PM
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-03-04 09:47 PM
WIDO_RSIDE_SILL_HEIGHT+WALL_POSITION[3]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-03-05 10:53 PM
"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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-03-05 11:52 PM
elevation of the base line of the opening"
Found here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-03-06 06:57 PM
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.