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…

GDL
About building parametric objects with GDL.

if GLOB_CONTEXT > 40 & GLOB_CONTEXT < 50 in not Deprecated mode?

If wiling to get additional cutting body for door/window for creating opening (with opening tool, not seo) in eg. wall that is an additional insulation in renovation I was trying to use GLOB_SEO_MODE... but it does nothing, but if GLOB_CONTEXT > 40 & GLOB_CONTEXT < 50 does the trick... so why those commands went "Deprecated" while there is no new one...and  the old one is still used in 28?

refs:

Deprecated Global Variables | GRAPHISOFT GDL Center

https://gdl.graphisoft.com/gdl-style-guide/general-scripting-issues/#GDLExecutionContext_section

10 REPLIES 10
Lingwisyer
Guru

seo_TOOL_mode?

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

I wrote in the beggining, that it does not work  😞

I was just checking to see if that was the command you were talking about as your OP did not include the "tool".

 

Just to clarify, you are trying to cut your insulation out of the wall when in a 3D view but not while in plan? I find your post very confusing and do not understand what you are trying to achieve...

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

I did that with the old commands:

I added 2 prisms that would do an invisible element in the door/window that would work with automatic void/cutout with the opening tool in the connect  command (create opening from selection). So when doing renovation with adding thermal insulation user can achieve semi automatic workflow.

I just wander what would be the not-deprecated command set...and btw the old set is still used in 28 doors & windows.

It might be because the command is actually ... GLOB_SEO_TOOL_MODE

 

I just tried it and it worked for me (although I still use the GLOB_CONTEXT as well.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

What I did:

I made a copy of "gs_general_lt_door_macro" and hooked it to the window

 

the modification was:

 

find in 3d script:

! =============================================================================
! Block for operator mode
! =============================================================================

 

then add just after:

 

 

if GLOB_CONTEXT > 40 & GLOB_CONTEXT < 50 then !cutting for creating opening
if not(WIDO_REVEAL_SIDE) then mulz -1 else mulz 1
_SEOrangeRevealOpposite=1
_SEOrangeReveal=1

!material _SEOfinish !gs_glass_mat
add -ac_wallhole_width*.5+gs_reveal_doubleInnerRight, -gs_lower_oversize, 0
mulz -1
block ac_wallhole_width-gs_reveal_doubleInnerRight-gs_reveal_doubleInnerLeft, ac_wallhole_height-gs_reveal_doubleInnerTop+gs_lower_oversize, _SEOrangeRevealOpposite
del 1
del 1

add -ac_wallhole_width*.5+gs_reveal_right, -gs_lower_oversize, 0
block ac_wallhole_width-gs_reveal_right-gs_reveal_left, ac_wallhole_height-gs_reveal_top+gs_lower_oversize, _SEOrangeReveal
del 1

del 1
endif

 

the above works with the opening tool

 replace the first line to:

if GLOB_SEO_TOOL_MODE = 1 then ! (instead: if GLOB_CONTEXT > 40 & GLOB_CONTEXT < 50 then)

 

and it does not work...at least in 26 as the objects have to compatible with 26

 

 

I wasn't aware doors and windows could participate in SEO.

However, if you have copied the macro, have you managed to change the GSID of it?

If you have, the doors and windows will not find the macro, even if you have called it by the same name.

Just trying to guess why it may not be working for you.

 

In a regular object, it certainly works.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

The doors and windows cannot be part of SEO... unfortunately - but their content can be a template for drilling out an opening with the "create opening ..."

My first iteration of such implementation was a plain prism with on/off switch - but having it as a SEO operator is more elegant.

Looking at the current (28) door/window objects and realizing that they still use glob_context made me thinking that making this command deprecated is kind of premature 😛

The core code of many of the doors and windows does not seem to change so it is all just spaghetti legacy code. Maybe see what the Multipanel Sliding Door does as it is new and seems to function very different from older doors so it might utilise a new method.

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!