If you have purchased the necessary modules, and your license is properly configured, you can launch PC-DMIS in different configurations. To do this, you can add these switches to the shortcut command line, batch file, or command prompt window that launches the application.
Available Software Configuration Switches
/f - You can use this switch for Offline mode.
/u - You can use this switch for user privilege level when you log onto the system as an administrator.
/o - You can use this switch for Operator mode.
/r - You can use this switch for Reverse Axes mode on Arm2 of a multiple arm system.
/p - You can use this switch for Pro mode. You cannot use this switch with the /c switch.
/c - You can use this switch for CAD mode. You cannot use this switch with the /p switch.
/d - You can use this switch for Debug mode for the current session.
/envFile - You can use this switch to run PC-DMIS with the selected environment or with the default environment.
/envFile: <name of the environment> - You can use this switch to run PC-DMIS with the specified environment.
/nc0 - You can use this switch to run PC-DMIS without the CNC functionality.
/5unique - You can use this switch to run PC-DMIS without this functionality.
/c - You can use this switch to run PC-DMIS in CAD mode. You cannot use this switch with the /p switch.
/cmt - You can use this switch to run PC-DMIS without this functionality.
/d - You can use this switch to run PC-DMIS in Debug mode for the current session.
/dccscanning - You can use this switch to run PC-DMIS without this functionality.
/displaycad - You can use this switch to run PC-DMIS without this functionality.
/f - You can use this switch to run PC-DMIS in Offline mode.
/fullcrashdump - You can use this switch to have PC-DMIS generate more detailed crash report files than normal. These more-detailed crash report files can help Hexagon programmers track down what caused the product to hang or stop responding. A full crash dump also includes screen captures. If you don't use this switch, the software uses the standard crash reporting. Standard crash reporting does not include screen captures.
/laserinterface - This switch allows you to choose the laser stripe controller and its associated functionality. You can add the specific controller after the colon:
/laserinterface:cms
/laserinterface:mercury
/laserinterface:romerintegrated
/laserprobe - You can use this switch to run PC-DMIS without this functionality.
/masterslave - You can use this switch to run PC-DMIS without this functionality.
/nc0 - You can use this switch to run PC-DMIS without the CNC functionality.
/nocontactprobe - You can use this switch to run PC-DMIS without this functionality.
/nocrashdump - You can use this switch to disable crash report files in PC-DMIS.
/nomigrate - You can use this switch to prevent the migration of entries and data files from a previous version. This switch can provide you with a clean "out of the box" experience. Only use this switch if you are sure you don't want to transfer key settings and calibration data from a previous version. To use this switch, add it to whatever shortcut or command you use that runs PC-DMIS for the first time as an administrator. When you do this, PC-DMIS does not copy your settings or data files from the most recent version.
/o - You can use this switch to run PC-DMIS in Operator mode.
/p - You can use this switch to run PC-DMIS in Pro mode. You cannot use this switch with the /c switch.
/r - You can use this switch to enable Reverse Axes mode on Arm2 of a multiple arm system.
/remotepanel - You can use this switch to run PC-DMIS without this functionality.
/rotarytable - You can use this switch to run PC-DMIS without this functionality.
/sheetmetal - You can use this switch to run PC-DMIS without this functionality.
/statsoutput - You can use this switch to run PC-DMIS without this functionality.
/systemv - You can use this switch to run PC-DMIS without this functionality.
/toolchanger - You can use this switch to run PC-DMIS without this functionality.
/u - You can use this switch to force PC-DMIS to run with normal user privileges even if you log onto the computer as the administrator.
/vision - You can use this switch to run PC-DMIS without this functionality.
/wrist - You can use this switch to run PC-DMIS without this functionality.
/DCILOAD:<file> - You can use this switch to load a file using Direct CAD Interfaces (DCI) where <file> indicates the complete path and file name of the model.
/DCTLOAD:<file> - You can use this switch to load a supplied part model using the direct CAD translators where <file> indicates the complete path and file name of the model.
/ISPROE - You can use this switch to specify that the software uses the .prt file in Creo (both NX and Creo use the same .prt file name extension). This follows the /DCILOAD switch.
/NC0 - You can use this switch to run PC-DMIS in normal Offline mode when you run PC-DMIS NC. The CNC licenses option is defined as greater than 0 in your portlock.
DCI/DCT Examples
This command line launches PC-DMIS and loads
an .igs CAD model using PC-DMIS Direct CAD Translators (DCT):
C:\Program Files\Hexagon\<version>\Pcdlrn.exe
New.prg /DCILOAD:d:\partmodels\hexblock_wireframe_surface.igs
This command line launches PC-DMIS and loads
a .prt CAD model from the NX Direct CAD Interface (DCI):
C:\Program Files\Hexagon\<version>\Pcdlrn.exe
New.prg /DCILOAD:d:\partmodels\hexblock.prt
This command line launches PC-DMIS and loads
a .prt CAD model as a Creo DCI:
C:\Program Files\Hexagon\<version>\Pcdlrn.exe
New.prg /DCILOAD:d:\partmodels\proe.prt /ISPROE
Routine of Shortcut Modification with Switches
Access the directory where the PC-DMIS executable shortcut is located. This directory is used:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\2023.1\
Right-click in the directory and select New | Shortcut.
Follow the on-screen instructions to have the shortcut point to where the PC-DMIS executable (pcdlrn.exe) is located (wherever you installed it).
Add any of the command line switches (or arguments), following the shortcut's full path to the executable:
So, if you want to run PC-DMIS pro in Offline mode, the target location would look something like this:
"C:\Program Files\Hexagon\<version>\PCDLRN.exe" /p /f
Where <version> is your version of PC-DMIS.
You can also tell PC-DMIS to automatically open a specific measurement routine (or measurement routines) by appending a pathway string pointing to a measurement routine as a command line argument.
When you specify a measurement routine to load, however, you do not need the / character required for the other arguments discussed above.
To open more than one measurement routine, type a space between each additional path.
If your file name contains spaces, put the path within quotation marks.
For example, if you wanted to launch two measurement routines named test.prg and test2.prg in Offline mode from a directory called "My Measurement Routines", the target locations might look something like this:
"C:\Program Files\Hexagon\<version>\PCDLRN.exe" /f "d:\my measurement routines\test.prg" "d:\my measurement routines\test2.prg"
The most common modes are Offline and Online. These two distinct products are designed to meet particular needs. They can be used together to create a complete measurement routine, measurement analysis, and reverse engineering system.
These configurations and other configurations are explained below in greater detail.
More: