Read or write down the contents of the operational fields and fields-notes of the calculator for ARCHICAD. There are 4 fields in the application and comments fields under them for the convenience of the user.

Calling:

ac_request("interface", "calc_field", string what, string fieldname, int dochangedot, string svalue,string scomment);


Here:

what - expression "set" or "get" - write or get,

fieldname - the name of the field "a"/"b"/"c"/"main" - to which of the fields the command will be applied.

dochangedot - to replace a comma with a dot when reading the operational field and vice versa when writing or not to replace (1/0).

svalue is the text value of the operational field,

scomment is the text value for the comment field to the operational field.

When executing the "set" command, information is saved to perform rollback or repeat operations.

Example.

Write the value 111.11 to the operational field "a" automatically replacing the dot with a comma. In the comments to this field, write that this is the area of the apartment.


ac_request("interface", "calc_field", "set", "a", 1, "111.11", "s квартиры");