ade_dsdetach

AutoCAD Map 3D AutoLISP

Up a level
ade_dsdetach
 
 

Detaches a drawing from the project.

(ade_dsdetach dwg_id)

Returns T or nil.

dwg_id Drawing ID to detach (real)

The following code detaches the drawing attached in the ade_dsattach example:

(if (ade_dsdetach dwg_id)
    ; check if it returned T 
    (princ "\nSuccessfully detached.") 
    (princ "\nDid not detach.") 
)