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

GDL
About building parametric objects with GDL.

GDL programming for hiding elements

JessicaVazquez
Participant

Hello!

 

I use curtain walls to draw since my line of work involves prefab panels. This complicates the process of adding doors to my projects, because the position of the doors is independent from the position of the fames of the panels. So for example; a door can intersect several panels at random positions.

 

Replacing a panel with a "door" is not a viable option in my case. For that reason I have created a Param-O object that I can use and place freely in my project. In order to create the door opening in the curtain panel, I added a block with an air material and use it for Solid Element Operations.

 

This works just fine, i'm able to place the door created with Param-O at will and with the included block within the Param-O object with the air material I have the exact position and size needed for the door opening (in combination with SEO).

 

This approach however creates a visualization problem in 2D views. Even though my block has an air material with a transparent (0% opacity) and a transparent color it still doesn't show transparent on my section and elevation views. This is a problem because this block that I created to represent the cut opening of the door hides the accesories of the door.

 

I have been experimenting with GDL scripts but I have hit a road block. So my question is the following:

 

Is there a way to use GDL to hide the block that creates the cut opening on the curtain wall? I already added a visibility parameter to the block, but if uncheked (invisible), then the opening created with SEO dissapears and only comes back as long as the block is visible.

 

Thank you so much, I hope I can find people who have come with similar problems. 

 

Schermafbeelding 2024-11-15 143237.png

ing 

 

Operating system used: Windows

2 REPLIES 2

Look for glob_seo_tool_mode in the gdl help

Pertti Paasky
Expert

****GLOB_VIEW_TYPE***

You can use this command in 3d script:

if GLOB_VIEW_TYPE=2 then 

!items here are shown only in 2d floor plan

endif

So You can split the 3d program to suitable peaces for every viewtype. 

2 - 2D (Floor Plan)
• 3 - 3D
• 4 - Section
• 5 - Elevation
• 6 - 3D Document
• 7 - Detail
• 8 - Layout
• 9 - Calculation

- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.

Setup info provided by author