cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Doesn't the 3D script take the master scripter's variable values? In the 2d script, it takes a value

LeeJaeYoung
Mentor

Doesn't the 3D script take the master scripter's variable values?
In the 2d script, it takes a value.....

 

Shouldn't I use an if statement?

AC25 5010 / AC26 4019 on window 11
11 REPLIES 11

You need to have walls that have different surfaces to use this system.

If you are using composite walls, these are automatically set.

 

 

To show you how it works, I selected a standard Archicad door and placed the following code at the end of the master script...

 

Wall_Is_Flipped = 0
A_Side = "Inside"
B_Side = "Outside"
n_A = REQUEST ("Name_of_material", WALL_MAT_A, name_WALL_MAT_A)
n_B = REQUEST ("Name_of_material", WALL_MAT_B, name_WALL_MAT_B)
if n_A > 0 and n_B > 0 then
   if strstr(name_WALL_MAT_A,"Brick") > 0 then
      A_Side = "Outside"
      B_Side = "Inside"
   endif
   if strstr(name_WALL_MAT_A,"Siding") > 0 then
      A_Side = "Outside"
      B_Side = "Inside"
   endif
   if strstr(name_WALL_MAT_B,"Plasterboard") > 0 and strstr(name_WALL_MAT_A,"Plasterboard") = 0 then
      A_Side = "Outside"
      B_Side = "Inside"
   endif
endif
if   A_Side = "Outside" then
    Wall_Is_Flipped = 1
endif


!   ---- Check with text in plan and in 3D   ------!
text2 0,0,Wall_Is_Flipped
DEFINE STYLE "own" "Gabriola", 180000 / GLOB_SCALE, 1, 0
SET STYLE "own"
text 1,0,Wall_Is_Flipped

 

AllanP_1-1684721889793.png

 

AllanP_2-1684721903957.png

AllanP_3-1684722074409.png

 

 

It will depend how you use archicad as to the effectiveness of this option.

It is complicated because you have to work out what is inside and what is outside based on material names...

 

 

I am up to page 4,078 of Archicad 26 Reference Guide, (Worksheet and Detail Tool Settings), but i got to read it all 😞

The WALL_MAT_A / WALL_MAT_B are irrelevant in this case. WIDO_REVEAL_SIDE is the relevant value and that changes when you flip a wall. I probably have not test every case, but as far as I have seen my materials and dimensions are correct with every orientation of the opening and flip status of a wall so that would indicate that it is working.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win10 | R5 2600 | 16GB | GTX1660 

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!