ade_dwgquickview

Land Desktop Development ARX CPP SDK

Up a level
ade_dwgquickview
 
 

Displays a quick view of a drawing.

int

ade_dwgquickview(

ade_id dwg_id);

Returns RTNORM or an error code.

dwg_id Drawing ID.

The following sample gets a list of drawings attached to the current project using ade_dslist(). Then displays quick views of all attached drawings and releases the resbuf as required

struct resbuf* pAttachedDwgsRb = ade_dslist(ADE_NULLID, ADE_FALSE);
int resultCode = RTERROR;
if (NULL != pAttachedDwgsRb) {
    struct resbuf* rb = pAttachedDwgsRb;
    while(NULL != rb) {
        resultCode = ade_dwgquickview(rb->resval.rreal);
        rb = rb->rbnext;
    }
}
else {
    acutPrintf(
        "\nThere are no attached drawings in this project.");
}
acutRelRb(pAttachedDwgsRb);