ade_dwgdeactivate

Land Desktop Development ARX CPP SDK

Up a level
ade_dwgdeactivate
 
 

Deactivates a drawing.

int

ade_dwgdeactivate(

ade_id dwg_id);

Returns RTNORM or an error code.

dwg_id Drawing ID.

The following sample deactivates all the drawings in the drawing set.

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