Save CMM-Manager Report Automatically for use with Discus CMM

Save Report Automatically for use with Discus

Once you've taught a program and create Report(s) it is possible to configure CMM-Manager program to automatically save report document in a format compatible with Discus CMM each time the program is run. 

Set Report Properties as follows:

  1. View the Report Database
  2. Right Click on Report Name - i.e. Default Report, MyReport1, etc.
  3. Choose Properties...
  4. Check the Save Report Checkbox
  5. Check the Data Page+ File Format
  6. Enter or Browse to Directory
  7. Filename must be "Default Report"
  8. Click OK to accept
Note - It's possible to save unique file / folder for each Report in Report Database - i.e. you could save .RPT file for Default Report and .PDF for MyReport1, each to a unique file location.



Convert .dpp file to .csv and add Characteristic Numbers

Discuss CMM expects a .csv file that contains a dedicated column of data with characteristic numbers - i.e. 1, 2, 3, 4, etc.  This can be done by running simple a Windows Batch File after the CMM-Manager report has been written to the disc.

For example, the CMM-Manager .dpp file looks like this:


Where Discus CMM expects data in a format like this:



Executing the following Windows Batch file will automatically add this column of lines numbers / characteristic numbers:
  1. @echo off &setlocal
  2. TIMEOUT /T 4

  3. setlocal EnableExtensions EnableDelayedExpansion
  4. set "FileName=Default Report.dpp"
  5. if not exist "%FileName%" endlocal & exit /B

  6. set "LineNumber=0"
  7. set "TempFile=%TEMP%\%~n0.tmp"
  8. del "%TempFile%" 2>nul

  9. (for /F "usebackq eol=| delims=" %%I in ("%FileName%") do (
  10.     echo %%I !LineNumber!
  11.     set /A LineNumber+=1
  12. ))>"%TempFile%"

  13. move /Y "%TempFile%" "Discus_Rpt.csv"
  14. if errorlevel 1 del "%TempFile%"
  15. endlocal

Add Conversion Batch File to end of CMM-Manager Program

Download & Unzip the attached Windows Batch File and place it in the same directory where the report is (will be) saved.  Then add an External Command Operation at the LAST step of the CMM-Manager program as shown here:



Note - the 5 second delay in Batch File is required.  This gives CMM-Manager enough time to save the Default Report.dpp file to the HDD / disc before the Batch File does its thing with manipulating the report file.

See Chapter 12 of the attached DISCUS Tutorial for details on use of Discus CMM software.


    • Related Articles

    • Save Report Automatically for use with Prolink QC-CALC Realtime

      Once you've taught a program and create Report(s) it is possible to configure CMM-Manager program to automatically save report document in a format compatible with QC-CALC each time the program is run. Set Report Properties as follows: View the ...
    • Save Report Automatically with each Program Run

      Once you've taught a program and create Report(s) it is possible to configure CMM-Manager program to automatically save report document each time the program is run. You can save report in the following formats: HTML Microsoft Excel Body-in-White ...
    • Losing CAD model in graphical report - Run Results File

      Possible issue: Any time you save a run file from a program that uses CAD models for graphical reports, those same graphics remain in those run files. However, if a change is made to the run file and saved, the CAD model disappears from the graphical ...
    • Edit Report Header - Image or Text

      It's possible to replace text in the top of Report Header with your own image as shown below. CMM-Manager Report Header From Preferences... CMM-Manager Preferences>Report Choose the Image option and then specify .BMP image as shown here... ...
    • VB Script - Variable use for Feature Names and User Notes

      When looping Program steps by use of VB Script loop - i.e. For Loop, Do Until, etc. - Features that have been executed more than one time will automatically be renamed using standard convention as such - Circle1, Circle1...1, Circle1...2, ...