CAD[SolidWorks] - Maple Programming Help

Home : Support : Online Help : Connectivity : CAD Package : SolidWorks : CAD/SolidWorks/CloseConnection

 CloseConnection

 Calling Sequence CloseConnection() CloseConnection(shutdown)

Parameters

 shutdown - (optional) boolean; true if the application should be closed on disconnect, false otherwise

Description

 • The CloseConnection command releases an open instance of SolidWorks.
 • If the shutdown option is true, then the open instance of SolidWorks will be shutdown.

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(\mathrm{true}\right):$