int shell_func(string directive, ...)

Performs accessing the system functions.
A set of arguments is determined in accordance with the directive.
Returns 0 if it succeeds. If something went wrong, returns -1.

get_path   get path string in accordance with the request
set_cur_dir   change directory
shellexecute   do operation

For processing tabular data LabPP_Automat provides a powerful tool ts_table(...).
To use it you must first create an object of type "ts_table" with the creation of the object.
This function returns an integer. This so-called object handle.
Pointing it out when referring to the functions ts_table(...) we indicate how an instance of the object we want to act on.
Here we create an object of type ts_table:

    int TableDescr1;  // definition variable type "integer".
    object("create","ts_table",TableDescr1);  // create object type ts_table" and write his descriptor into variable ableDescr1
    // This place we work with ower instatce of object ts_table->
    // <-
    object("delete",TableDescr1); // where we not needed this instatce, delete him, by his descriptor.

Through the use of descriptors we can work simultaneously with a large number of table objects. And this, in turn, gives us the ability to create reports and processing the incredible complexity simple, convenient and understandable.

To work with instance of an object "ts_table" function is used

ts_table(int descriptor, string directive, ....);

The essence of the Directive defines the string list, and the value of the following further arguments.

add_column   add column to table
set_first_key   specify column, by checking unicity of rows (wery usefull)
add_row   add row
add_row_sum  

add row with summ number values on other columns, if value of unify column are same with already present row

sort   do sort table rows by specified column
select_row   specify row to set it as current
search   fast search row by value in column
get_value_of   get value from specified column from current row
get_rows_count   get number of rows in table
get_columns_count   get number of columns in table

As soon as AddOns LabPP_Automat means the extension Manager is connected to ARCHICAD in the menu "Design\Design Extras" appears "Lamp - Automatic".

When performing a nested item "Show/hide palette" appears on the screen selection dialog configuration.

Расчеты в ARCHICAD
before LabPP_Automat palette will appear on the screen, worked through software script config.cpp. There are procedures for creating buttons.

This file, like all other script files located in the subdirectory tsprg.


ac_request("projectinfo", valuename1, variablename1, valuename2, variablename2, ...)

In arguments, the name of the project parameter is specified, followed by a comma-separated variable for the program, where to return the value.
And so on, through a comma.
Returns 0 on success. If something goes wrong, -1 returns.

"projectname"   name of the project
"client"   the client name
"company"   company name
"street"   the street
"city"   the city
"country"   the country
"architect"   architect name
"projectstatus"   project status
"date"   project issue date
"notes"   the notes
"draftsmen"   performer

int run_cpp(string directive, ...)

Runs another script from the current one.
Using these functions, you can create "on the fly" scripts of any complexity, as well as run with different initial values of the arguments;
After executing another script, the execution of the current script continues.
Returns the value that the running script issued in the return command (for example, 0, if it was return 0;).
The text of the script for execution can be created directly during execution of the current script and written to a variable of type stging.
Then you can run it directly from this variable.
At start it is possible to use incoming parameters - an integer, a real number and a string.
Directives and their meanings are listed below.

run_from_file   run the script text from the file, with specified arguments
run_from_variable   run script text from a string variable, with arguments
get_args   get arguments that were set when the script was run