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 Inventor.
 • If the shutdown option is true, then the open instance of Inventor will be shutdown.

Examples

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