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.

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

LeeJaeYoung
Virtuoso

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?

AC27 on window 11
14 REPLIES 14

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 have been using ArchiCAD continually since ArchiCAD 4.5, 4.5.5, 5, 5.1, 6, 6.5, 7, 8, 8.1, 9, 10, 11, 12, 13, 15, 18, 21, 22, 25, now testing 27
Member of Architalk since 2003, but missed the migration to Graphisoft.
(where have all my original posts gone?)

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
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660

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?

AC27 on window 11

If you know the Building Material you can request the surface value of the building material.

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

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)

 

AC27 on window 11
Learn and get certified!