GetActiveDocument

 Calling Sequence GetActiveDocument()

Description

 • The GetActiveDocument command gets a handle to the active SolidWorks document.

Examples

 > $\mathrm{with}\left(\mathrm{CAD}[\mathrm{SolidWorks}]\right):$
 > $\mathrm{OpenConnection}\left(\right):$
 > $\mathrm{doc}≔\mathrm{GetActiveDocument}\left(\right)$
 ${\mathrm{doc}}{:=}{0}$ (1)
 > $\mathrm{CloseConnection}\left(\right):$