Tip: ModelCHECK DIR_REPORT path for Windows environment
Hello all,
When configuring ModelCHECK and setting DIR_REPORT in config_init.mc the path is interpreted as Windows if you specify a static path, for example:
DIR_REPORT c:\myusershomebaseetc\subfolder\mc_reports
But let's say you want the report to live in a subfolder based on the windchill username? You might want to do this if you don't use the windows provided %USERPROFILES% which is c:\users\<username>\ in most cases.
Here's what I found works on Windows 7 professional:
DIR_REPORT $homedrive/home/$USERNAME/mc_reports
(Note the forward slashes, this is opposite to Windows convention of '\' backslashes for paths.)
If you do want to use %USERPROFILES% you would use this:
DIR_REPORT %USERPROFILE/mc_reports
These below options do NOT work in my testing:
DIR_REPORT $homedrive\home\$USERNAME/mc_reports
DIR_REPORT $homedrive\home\$USERNAME\mc_reports
DIR_REPORT c: \home\$USERNAME/mc_reports
DIR_REPORT c:\home\$USERNAME\mc_reports
All results in Creo Parametric 2 M120 defaulting to the folder where Creo was started, as documented in the Creo help system.
Related PTC articles: TPI 31240, CS116772.

