CloseDocument

 Calling Sequence CloseDocument(swdoc)

Parameters

 swdoc - a handle to a SolidWorks document

Description

 • The CloseDocument command closes a SolidWorks document.

Examples

 > $\mathrm{with}\left(\mathrm{CAD}[\mathrm{SolidWorks}]\right):$
 > $\mathrm{OpenConnection}\left(\right):$
 > $\mathrm{doc}≔\mathrm{OpenDocument}\left("c:/mypart.sldprt"\right)$
 ${\mathrm{doc}}{:=}{0}$ (1)
 > $\mathrm{CloseDocument}\left(\mathrm{doc}\right)$
 > $\mathrm{CloseConnection}\left(\right):$