License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…
2023-07-14 09:00 AM
Is there a way to GDL code a 2d view in a way that it becomes automatically different according to the scale?
like for example if below 1:50 = view 1
if above 1:50 and below 1:100 = view 2
above 1:100 = view 3
same way as you have with model view options objects detail level?
Thanks
Bawar
Solved! Go to Solution.
2023-07-14 09:11 AM
Hi
one way:
IF GLOB_SCALE <= 50 THEN
! view1
ELSE
IF GLOB_SCALE <= 100 THEN
! view2
ELSE
! view3
ENDIF
ENDIF
another way would be
IF GLOB_SCALE <= 50 THEN
! view1
ENDIF
IF GLOB_SCALE > 50 AND GLOB_SCALE <= 100 THEN
! view2
ENDIF
IF GLOB_SCALE > 100 THEN
! view3
ENDIF
2023-07-14 09:11 AM
Hi
one way:
IF GLOB_SCALE <= 50 THEN
! view1
ELSE
IF GLOB_SCALE <= 100 THEN
! view2
ELSE
! view3
ENDIF
ENDIF
another way would be
IF GLOB_SCALE <= 50 THEN
! view1
ENDIF
IF GLOB_SCALE > 50 AND GLOB_SCALE <= 100 THEN
! view2
ENDIF
IF GLOB_SCALE > 100 THEN
! view3
ENDIF
2023-07-14 09:48 AM
you are simply the best 😄
used the first method. i am a beginner with gdl but it is quite satisfying. that it works:D
if you have tips they are welcome:D
2023-07-14 09:57 AM
@Bawar Tanay wrote:
if you have tips they are welcome:D
Horse 11 in the fifth race at Ascot.
It's a sure thing. 😉
Sorry I couldn't resist.
I was also going to say - "quit while your ahead". 🤣
Barry.
2023-07-14 10:05 AM
Hahahahaha
Will share the price money with you, or split the losing 😄
Quitting is not an option hahaha
it works quite great, love the logic behind GDL, but there is a lot of learning for me to do.
Especially Graphic User Interface – I just don't understand how that works or the macros for example.
Anyway, I figured it is important to sketch the outcome you want
and write all the requirements of that object before you start coding.
It makes life easier.
2023-07-14 10:15 AM
GDL is quite simple yet quite complex at the same time.
The best investment I ever made was the GDL COOKBOOK 3 by David Nicholson-Cole.
It is very old (so not up to date) and you can't purchase it any more.
But if you Google it you will find a PDF version (4 which is a little more up to date).
The basics in the book are still all applicable - it just doesn't include some of the newer commands.
It has a few bits on the user interface.
I still refer to it some 20 odd years after it was published.
Barry.
2023-07-14 11:04 AM
@Bawar Tanay wrote:
you are simply the best 😄
pretty sure, I'm not 😉 but i'm glad to be of help
@Bawar Tanay wrote:
if you have tips they are welcome:D
besides bets on horseracing i basically use 4 different sources 😉