We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-05-10 03:06 PM - edited 2023-05-10 04:52 PM
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?
2023-05-22 03:41 AM - edited 2023-05-22 04:23 AM
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
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...
2023-05-22 06:00 AM
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 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2023-09-21 07:49 PM
Is there a way to get a surface from the building material obtained with wall_skins_params?
Or do you mean that I have to write code that requires knowledge of the surface of the buildin material like in the code?
2023-09-22 03:08 AM
If you know the Building Material you can request the surface value of the building material.
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2023-09-22 05:00 AM
Thank you for your help in finding it. ^^
Have a nice day. ^^
n = REQUEST{2} ("Building_Material_info", name_or_index, param_name, value_or_values)