Read and set the value of the element GDL parameter..cpp
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
Transfer object values from internal to user parameters
Transfer object values from internal to user parameters.cpp
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.