ade_altplist

Land Desktop Development ARX CPP SDK

Up a level
ade_altplist
 
 

Lists the IDs of the current property alteration expressions.

struct resbuf*

ade_altplist();

Returns a list of property alteration IDs or NULL.

This list of property alteration expressions returned by this function constitutes the current property alteration definition.

You must release the resbuf.

The following sample parses the resbuf returned by ade_altplist() and prints a list of property expression ID's in the current project. Then it releases the resbuf, as required.

struct resbuf* pAltPropListRb = NULL;
pAltPropListRb = ade_altplist();
if (NULL != pAltPropListRb) {
    int nAltProp = 0;
    struct resbuf* rb = pAltPropListRb;
    while(rb != NULL) {
        ++nAltProp;
        acutPrintf(
            "\nThe property alteration expression id %d is: %.0lf"
            ,nAltProp, rb->resval.rreal);
        rb = rb->rbnext;
    }
}
else {
    acutPrintf(
        "\nThere are no property alteration expressions in this project.");
}
acutRelRb(pAltPropListRb);