2024-05-04 09:10 AM - last edited on 2024-09-26 01:06 PM by Doreena Deng
Is there a way to find out the vertices coordinates of the roof pivot line in GDL? I know it must be possible for roof accessories, but can't find anything in GDL.
2024-05-13 10:44 PM
Anyone?
2024-05-14 09:27 AM
I'm afraid there is none.
Trying to automatically orientate your magic roof pitch label, aren't we? 😉 (btw. still can't thank you enough for creating your content regarding gdl - keep up the good work!).
I once came across a Skylight (!) Object functioning as roof pitch label. The label works, though I hate the fact that you have to use a skylight to label a roof pitch - that just sounds wrong 🤔 Maybe you could try to backward engineer it (I haven't tried that yet due to lack of advanced gdl knowledge and lack of time to be honest), but maybe it is hardcoded that a skylight can read a roof plane orientation and there's no way around it 😔
2024-05-14 10:16 AM
I am not aware of a GDL command to get the information directly.
But I do know that the roof accessory stores the values in a parameter called ... ac_ref-coords.
It is the start and end co-ordinates in relation to the project origin.
Not sure if that will help.
Any object you create will have to be a roof accessory sub-type and applied the the roof accessory add-on.
Or you would have to find the API (add-on) command that retrieves this information - which I know nothing about.
Barry.
2024-05-15 12:20 AM
Thanks guys. I was aware of the accessories option, but that then changes it from a nice simple label into something far more obscure for the average user.