dci

### Step 2 - Use a Batch File to Run PC-DMIS

In order to have PC-DMIS communicate with and attach to Teamcenter, you need to have PC-DMIS get launched from a special batch file:

1. Start a simple text editor program, like Notepad.

2. In a new file, type the following:

SET TC_ROOT=D:\TC91\tcroot

SET TC_DATA=D:\TC91\tcdata

call %TC_DATA%\tc_profilevars

call C:\"Program Files"\Hexagon\"PC-DMIS 2016.0 64-bit"\pcdlrn.exe

If needed, append /f after pcdlrn.exe to force PC-DMIS to run in Offline mode.

3. Give the file a name and save it on your computer. We recommend you give it a descriptive name, like startpc-dmis.bat, and that you save it to your Documents directory.

4. Double-click on the batch file to start PC-DMIS in Teamcenter mode. A batch file from Teamcenter also runs at this time, showing "PC-DMIS Teamcenter interface" followed by a date.

If you see that line of text, it means that PC-DMIS and Teamcenter are communicating properly.

Continue with the next step to open a PC-DMIS measurement routine from a Teamcenter database.