BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

GDL
About building parametric objects with GDL.

Is the master and 2D script not working in the invert wall direction?

LeeJaeYoung
Virtuoso

dim skinCummThkRef[]
cumRefThk = 0

 

if bCompositeWall then
     for i=1 to WALL_SKINS_NUMBER
          idx = i: gosub 10 ! Get proper index

          skinCummThkRef[i] = WALL_SKINS_PARAMS[idx][SKIN_THICKNESS]

     next i
endif

 

text2 0,0, skinCummThkRef[1]

 

LeeJaeYoung_0-1680523012340.png

LeeJaeYoung_1-1680523038109.png

 

LeeJaeYoung_2-1680523078504.png

Moving a wall changes it

LeeJaeYoung_3-1680523155464.png

Why does this happen?
It changes immediately on the flip wall, so there seems to be no problem. Is the master and 2D script not working in the invert wall direction?

 

In CavityClosure

AC27 on window 11
9 REPLIES 9
Peter Baksa
Graphisoft
Graphisoft

Hi, what is your code at subroutine 10?

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

text2 0,0, skinCummThkRef[1]

 

This is the outermost wall thickness.
If you do an invert wall, it will be the wall thickness inside.

AC27 on window 11

You need to write a small equation that reads the wall parameters backwards if the wall is flipped for your go sub 10

I don't understand at all what to do.
I would be grateful if you could elaborate a bit.
I'm a non-English speaker..... ^^
It would be easier to understand if you explain with code.

If you look at any code, I will look for it. ^^

Are there parameters that change when you do an invert wall?

AC27 on window 11
Yves
Advocate

a small example in code

 

rota=SGN(SYMB_ROTANGLE)    ! W~ Angle de rotation  (0 ou 180) -> (0 ou 1) 
ncc=WALL_SKINS_NUMBER          ! Nombre de couches du mur composite


DIM ep_cc_int []

IF rota = 1 THEN

	FOR i =1 TO ncc
	ep_cc_int [ncc+1-i] = WALL_SKINS_PARAMS [i][2]
	NEXT i

ELSE

	FOR i =1 TO ncc
	ep_cc_int [i] = WALL_SKINS_PARAMS [i][2]
	NEXT i
		 
ENDIF
Yves Houssier
Belgium
Archicad 19 -> 24
iMac - Mac Os 10,13
LeeJaeYoung
Virtuoso

However, in the question, if I invert wall, the inner value (60) comes out.

 

this code is in Cavityclosure.

[Master Script]

reorder = (AC_Wall_Direction_Type <> 1 & AC_Wall_Direction_Type <> 3)
10:
    if reorder then
        idx = WALL_SKINS_NUMBER + 1 - idx
    endif
return

 

Again, I don't know if this routine worked or not, but suddenly it has a value of 60. Then, the value should be maintained, but if you move the wall again, the value changes to 10.
I don't understand this. ㅠㅠ

 

 

When flipping the wall, keep the value of 10.

The problem is that this only happens on the invert wall.

AC27 on window 11

Are there parameters that change when a wall is inverted?

AC27 on window 11
Peter Baksa
Graphisoft
Graphisoft

Yes, WALL_FLIPPED. You can read more here about the orientation of openings.

The master and 2D script should work the same, but only if you don't store parameters in the master script. Then master script runs also before parameter script, and some globals might not be available in parameter script context, or the parameter script might not run when the wall is flipped.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

thank you
I would like to strengthen the GDL of window or door for beginners.
In other programs, this is done outside the wall.
However, archicad can invert walls without changing the state.
It also provides a function that has nothing to do with the starting point called wall flip.
Also, we need to consider the symbol rotation.
First of all, I also had an unexpected phenomenon at 0 180 90 270, so I solved it with a conditional statement, but if you explain the exact location and direction of the windows so that I can understand it, it will be easier for archicad.

AC27 on window 11
Learn and get certified!