2023-04-03 02:12 PM - last edited on 2023-04-05 02:40 PM by Peter Baksa
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]
Moving a wall changes it
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
2023-04-05 02:50 PM
Hi, what is your code at subroutine 10?
2023-04-05 03:06 PM
text2 0,0, skinCummThkRef[1]
This is the outermost wall thickness.
If you do an invert wall, it will be the wall thickness inside.
2023-04-05 04:14 PM
You need to write a small equation that reads the wall parameters backwards if the wall is flipped for your go sub 10
2023-04-05 04:49 PM
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?
2023-04-05 05:53 PM
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
2023-04-05 06:06 PM - edited 2023-04-05 06:08 PM
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.
2023-04-05 06:36 PM
Are there parameters that change when a wall is inverted?
2023-04-12 09:02 AM
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.
2023-04-12 10:17 AM
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.