Attaches a drawing to the current drawing.
ade_id
ade_dsattach(
char* dwgname);
Returns the ID of the drawing attached or ADE_NULLID.
dwgname | The path alias and file name of the drawing to attach. |
This function returns an ID even if the drawing does not exist. A system administrator can use this function to define a drawing set before the drawing files it references are created or installed. A drawing must exist before you can make it active.
ade_aliasadd ("ADSRX_SAMPLE", "C:\\ADSRX\\Drawings"); ade_id dwgId101 = ade_dsattach("ADSRX_SAMPLE:\\101.dwg"); if (ADE_NULLID == dwgId101) { acutPrintf( "\nThe specified drawing was not attached."); } else { acutPrintf( "\nThe specified drawing was successfully attached."); }