Get the value of the variable of the current element.

Call:

int ires = ac_request("get_element_value", string svaluename);


Here:

svaluename is the variable name of the element.

The return value is 0 if the request was successful.

The value of the variable is read by the next call to ac_getnumvalue() or ac_getstrvalue();

Example.

Read the floor number of the current element.

int floornum;
int ires = ac_request("get_element_value","StoreIndex");
if(ires == 0)
{
   floornum = ac_getnumvalue();
   cout << "floor number=" << floornum;
}


svaluename values:

TypeID

Get the element type as a number.

TypeName

Get the element type as text.

layer

Get the name of the layer the element is on.

ID

Get the element ID.

StoreIndex

Get floor index.

GuidAsText

Get the unique identifier (guid) of the element in text form.

For elements of type Object

ObjectName

Get the name of the library element.

level

Elevation in Z

pos.x

X position.

pos.y

Position Y.

offset.x

Offset of the internal point of origin from position pos.x.

offset.y

Offset of the interior origin from pos.y.

another name

If another name is specified, it is treated as the parameter name to be read from the object.