OpenConnection

 Calling Sequence OpenConnection()

Description

 • The OpenConnection command initializes a connection with an NX session. Please note that you must first follow the instructions listed in the Connecting to NX section on the CAD[NX] page before using the OpenConnection command.

Examples

 > $\mathrm{with}\left(\mathrm{CAD}:-\mathrm{NX}\right):$
 > $\mathrm{OpenConnection}\left(\right):$
 > $\mathrm{OpenPart}\left("C:\Program Files\Siemens\NX 8.5\NXPARTS\Reuse Library\Reuse Examples\Standard Parts\ANSI Inch\Screw\Hex Head\Hex Cap Screw, Full Thd, AI.prt"\right):$
 > $\mathrm{doc}≔\mathrm{GetWorkPart}\left(\right)$
 ${\mathrm{doc}}{≔}{"C:\Program Files\Siemens\NX 8.5\NXPARTS\Reuse Library\Reuse Examples\Standard Parts\ANSI Inch\Screw\Hex Head\Hex Cap Screw, Full Thd, AI.prt"}$ (1)
 > $\mathrm{CloseConnection}\left(\right):$