Read and set the value of the element GDL parameter..cpp
How use
Select a library element (object). The program reads the value from the "MY_TEXT" parameter and writes the new value "Hello, World!)))" There. If the object has no such parameter, then reading and writing will be performed from/to the object ID
Trim spaces in a string, translate to upper and lower case
File Name
Alltrim and ToLower and ToUpper (en).cpp
How use
Declares a string variable, writes " Warm Sea " into it. To show the result of the functions - "Warm Sea", " WARM SEA ", " warm sea " to the message window
Read and summarize volumes from elements of type "Wall " with ID = "Contour "
File Name
Quantity(en).cpp
How use
Create a few walls in the project. Assign them ID = "Contour". Run script = in the message window the volumes of these walls will be listed and at the end the total volume is displayed.
Transfer object values from internal to user parameters
File Name
Transfer object values from internal to user parameters.cpp
How use
In the script there is a place where we can write pairs of properties from where and where to copy the values of the parameters:
// in column 0 - the name of the parameter where to get the data, in column 1 - the name of the property where to write
ts_table (TableDescr, "add_row ", 0, "TS_LIVING_ROOM_AREA ", 1, "S living ");
Here - TS_LIVING_ROOM_AREA - the name of the object parameter where to get the value.
"S living " - the name of the user parameter, where to transfer the value. Note that the data types of the parameter pairs must match.
You can create any number of such bundles = when executing the script for all objects, the values of the specified internal parameters will be transferred to user parameters.
User parameters are properties created in the classifier for elements in ARCHICAD 21 and higher.
Create several Morph elements in the project. Select them. Run the script = all sums of Morph edge lengths in the selection will be listed in the window and at the end - the total length. Edges are summed including internal, if any.
Landing beams on a curved surface, taking into account the angle of inclination
File Name
GravityBeam(en).cpp
How use
Select the element "beam ". Select the item to be used as a landing surface. = The beam will land on the surface so that the start and end points are on the surface.
Then select the 3d mesh. Use the mouse to select the element that will be used as a surface for landing. = Points on the 3d grid surface will land on the surface.
Open an Excel spreadsheet. Write something in the range of cells "H10: I11 " and execute the script = the contents of these cells will be copied to "H20: I21 "