cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
JessicaVazquez
Participant

GDL programming for hiding elements

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

4 Replies 4

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.
Velocipede2022
Booster

Would really appreciate more about this.  I want to make an object that I can use as a plane, a line that sets elevations datum’s, such as top of plate. I want to see it in section and elevation but not in 3d.  Thanks!

ArchiCAD 29.0.2, Windows 11, Nvidia GeForce RTX 3060 laptop GPU, Intel 11th gen [email protected], 32gb ram
Barry Kelly
Moderator

In your 3D script ...

 

if GLOB_VIEW_TYPE = 4 or GLOB_VIEW_TYPE = 5 then

     your code for line or plane here

endif

 

This will show what you want only in the elevations or sections.

 

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

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!