We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.

GDL: Stair Dimensions

Lingwisyer
Guru

How do you go about pulling the Riser Height and the Tread Depth of a stair?

 

I had thought that STAIR_STRUCTURE_GEOMETRY[1][COORD_Z] was giving me the height, but this only seems to be the case when the Flight Start Support Connection is set to Horizontal... COORD_X seems to give me half the width all the time, not that that is relevant to me. Have no clue what COORD_Y is refering to...

 

All of the tread and riser variables appear to require a selection in order to return a non-zero answer...

 

_cutPolyVertAttr[iVert][DRAWPOLY_COORD_X] & _cutPolyVertAttr[iVert][DRAWPOLY_COORD_Y] look light they could be somehow used since they are used to cut the structure but I have not been able to figure out how they work either...

 

 

Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
1 REPLY 1
runxel
Legend

There is the global RISER_HEIGHT.

The depth of a tread is not uniform, that's why its stored in STAIR_TREAD_GEOMETRY[n][3].
Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»