Store the current element in an ac_element_guid object.

To work with an element through the ac_request(... functions, we make the element current. For example, this is done when we have loaded elements into one of the internal lists and selected the current position.

But it may be necessary to store its unique number for processing by other functions. Then we create an object of type ac_element_guid. When creating an object, we get its descriptor - the internal number of the object. And with this descriptor we address here. As a result, a unique element number will be written to the ac_element_guid object.

Call:

ac_request("store_cur_element_to_descr", int &iGuidDescr);


Here:

iGuidDescr is a handle to an object of type ac_element_guid, in which the unique number of the current element will be stored.