ade_projlistctgy

Land Desktop Development ARX CPP SDK

Up a level
ade_projlistctgy
 
 

Lists available coordinate system categories.

struct resbuf*

ade_projlistctgy();

Returns a list of coordinate system categories or NULL.

The following sample parses the resbuf returned by ade_projlistctgy() and prints the coordinate system category list. Then it releases the resbuf, as required.

struct resbuf* pCoordSysCtgyRb = ade_projlistctgy();
if(pCoordSysCtgyRb != NULL) {
    acutPrintf(
    "\nThe following coordinate system categories have been detected:");
    struct resbuf* rb = pCoordSysCtgyRb;
    while(rb != NULL) {
        acutPrintf(
            "\n\n\t%s"
            , rb->resval.rstring);
        rb = rb->rbnext;
    }
}
else
{
    acutPrintf(
        "\nNo coordinate system categories have been detected");
}
acutRelRb(pCoordSysCtgyRb);