2023-12-07 02:05 PM - last edited on 2024-09-26 01:55 PM by Doreena Deng
How to get value of sea level in GDL?
1. Builtin.General_ElevationToSeaLevel (introduced in ARCHICAD 25) Should I use this?
(How should I use it?)
2. SEALEVEL - GLOB_HSTORY_ELEV = SLevel
I need to find the sealevel, but I can't.
Solved! Go to Solution.
2023-12-07 03:15 PM
I believe you need to use the "REFERENCE_LEVEL_DATA" request:
n = REQUEST ("REFERENCE_LEVEL_DATA", "", name1, elev1, name2, elev2, name3, elev3, name4, elev4)
Those names and elevations refer to the 4 reference levels from the project preferences.
2023-12-07 03:15 PM
I believe you need to use the "REFERENCE_LEVEL_DATA" request:
n = REQUEST ("REFERENCE_LEVEL_DATA", "", name1, elev1, name2, elev2, name3, elev3, name4, elev4)
Those names and elevations refer to the 4 reference levels from the project preferences.
2023-12-07 04:52 PM
thank you so much. ^^
But what I don't understand is that elev4 is a negative number.
I set 12.5, but the answer I get is -12.5, which is perplexing.
2023-12-07 04:59 PM
Sea Level is tricky. When you enter it in the Project Location settings, you enter the height your project 0.00 is from the sea.
So, if the project zero (ground floor 0.00) is 500 m above the sea, you enter "500 m". But then when you enter the "Project Preferences > Reference Levels" settings, your origin/base level is the ground floor 0.00 level, and the other reference levels are measured from there. so if you open this dialog, you will see that the sea level is a negative number here (because 0.00 is ground floor, and the sea is 500 m below this level, in other words: -500 m).
Long story short: In the Project Location settings you have to enter it as a positive number, but other than that, it is always negative (as long as the building is above sea level of course).
2023-12-07 05:05 PM
thank you so mucn . ^^
I will study harder.
Is Builtin.General_ElevationToSeaLevel not available?
2023-12-07 06:14 PM - edited 2023-12-07 06:15 PM
I have no idea what that is, but it doesn't look like GDL to me. 🙂
Where did you read about it? Can you send me a link?
2023-12-07 11:57 PM
Built-in property guide | GRAPHISOFT GDL Center
2023-12-08 01:54 AM - edited 2023-12-08 01:54 AM
These built in properties were introduced in version 25.
But his concerns me.
I probably wouldn't use them unless you really had to, or they are better in some way.
I have never used them yet.
Barry.
2023-12-08 12:00 PM
Oooh, I see. As far as I understand these were designed specifically to make it easier to reference Archicad Properties in Label objects. (so this is something completely different from what you are looking for)
When you place a label on something and want to display its Property values, you need a REQUEST command, and then one of the parameters in that request will be the Global Unique ID of the Property. This is a difficult-to-remember string of letters and numbers, but if you are referencing a builtin property, you can use these keywords instead of that number.
It looks like "Builtin.General_ElevationToSeaLevel" keyword would tell you how high above the Sea Level is the object you labeled. E.g. if the Sea Level is at -100 m, and a chair is placed 1 m above the ground floor 0.00 m, then then this should return "101 m".
2023-12-08 02:12 PM
I would be grateful if you could tell me the object containing the code that I can study.
I didn't tell you the value of this.
text2 0,-3,Builtin.General_ElevationToSeaLevel