get
Read the value of a variable from the project information.
Call:
int iret = ac_request("autotext","get", string svarname);
Here:
svarname is the name of the variable in the project info to be read.
iret - 0 if it was considered without errors.
The result is obtained by calling the ac_getstrvalue() function;
Example.
Read the value of the "Object address" variable from the information about the project.
string svaluename = "Object address";
int iret = ac_request("autotext","get", svarname);
if(iret == 0)
{
string saddress = ac_getstrvalue();
cout << "Address = " << saddress;
}
else
{
cout << "Failed to read the address. Perhaps the variable " << svaluename << " has not been created in the project";
}