Read or write the contents of the quick and note fields of the calculator for ARCHICAD. The application has 4 fields and under them for the convenience of the user - comment fields.

Call:

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 - field name "a"/"b"/"c"/"main" - which field the command will be applied to.

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

svalue - text value of the operational field,

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

When executing the "set" command, information is saved for rollback or redoing operations.


Example.

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


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