ade_dsdetach

Land Desktop Development ARX CPP SDK

Up a level
ade_dsdetach
 
 

Detaches a drawing from the current drawing.

int

ade_dsdetach(

ade_id dwg_id);

Returns RTNORM or an error code.

dwg_id The drawing ID to detach.

The following sample detaches the drawing attached in the ade_dsattach sample:

int resultCode = ade_dsdetach("ADSRX_SAMPLE:\\101.dwg");
if (RTNORM == resultCode) {
    acutPrintf(
        "\nThe specified drawing was detached.");
}
else {
    acutPrintf(
        "\nThe specified drawing was not detached.");
}