create
Create a custom setting for the current element.
Call:
int ires = ac_request("elem_user_property","create", string sparname, string svartype, bool/int/double/string value, string svartype, string spargroupname);
Here:
svarname - the name of the created parameter.
value - the default value of the parameter.
svartype - Variable type - "String"/"Real"/"Integer"/"Boolean" - text, real, integer or boolean.
spargroupname - the section in which the user variable will be created.
ires - 0 - if the variable was created successfully.
Example.
Create a user parameter "Useful area of the building" for the current element in the "TEP Section" section. The parameter type is boolean. The default value is "false".
string sUP = "Useful building area";
string sUPRazdelName = "TEP section";
int ires = ac_request("elem_user_property","create",sUP,0,"Boolean", sUPRazdelName);
if(ires==0)
{
int istrue = ac_getnumvalue();
if(istrue==1)
{
cout << "This zone refers to the usable area of the building";
}
}