Reply To: What is the proper replacement for GLOB_​​​CONTEXT=1?

Home Forums Problems and solutions in GDL Informations from the environment What is the proper replacement for GLOB_​CONTEXT=1? Reply To: What is the proper replacement for GLOB_​​CONTEXT=1?

#1903
Gergely Fehér
Keymaster

Try this way:

EPS = 0.0001
....
ha = A/s    ! if it is needed later in the script - if not, then move in the "if" below
bCurvedWall = abs(WIDO_ORIG_DIST) > EPS   ! later it can be used to determine 
if bCurvedWall then
    hNg = ATN (hA / abs(WIDO_ORIG_DIST))
endif

Later in the script you can easily separate the parts corresponding to curved walls with the bCurvedWall variable. It’s much better separating working methods by their original purpose, than mixing up context with them.

Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE