I'm wondering if my auto report command can be modified to send the same report to 2 different file locations. One being our main shared drive and the other file being my own folder within our shared drive. As an offline programmer I would like to know when my program was ran because I like to verify the results for proofing reasons.
Can I send one auto report to 2 different file locations?
Collapse
X
-
I haven't done anything like this personally, but this link may be able to help you.
https://docs.hexagonmi.com/pcdmis/20...ile&rhsyns=%20
- 2 likes
-
Just playing around with the print command, I can get it to save to 2 locations by inserting 2 print commands. In order to see the data on the second report, I had to copy the dimensions and paste them under the first print command. The second report loses the header information that is normally on the first page so you would need to do some assignments and comments to get that info onto the second report. Haven't tried this online yet.
Code:CYL1,CYL2,CYL3 FEATCTRLFRAME/SHOWNOMS=YES,SHOWPARAMS=YES,SHOWEXPANDED=YES, CADGRAPH=OFF,REPORTGRAPH=OFF,TEXT=OFF,MULT=10.00,ARROWDENSITY=100,OUTPUT=BOTH,UNITS=IN, COMPOSITE=NO,FIT TO DATUMS=NO,DEV PERPEN CENTERLINE=OFF,OUTPUT ALIGNMENT=Datum Reference Frame CUSTOMIZED DRF=NO STANDARDTYPE=ASME_Y14_5 SIZE TOLERANCES/3,DIAMETER,0.1005,0.0025,0.0025 PRIMARY DIMENSION/POSITION,DIAMETER,0.015,MMC,<PZ>,<len>,A,B,C SECONDARY DIMENSION/,<tol>,<MC>,<dat>,<dat>,<dat> NOTE/FCFLOC1 FEATURES/CYL1,CYL2,CYL3,, Set <NEW> CYL1 <NEW> CYL2 <NEW> CYL3 <NEW> DIM LOC1= LOCATION OF CYLINDER CYL1 UNITS=IN ,$ GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO AX NOMINAL +TOL -TOL MEAS DEV OUTTOL MAX MIN D 0.0980 0.0025 0.0025 0.0980 0.0000 0.0000 0.0980 0.0980 ---------#---------- END OF DIMENSION LOC1 DIM LOC2= LOCATION OF CYLINDER CYL2 UNITS=IN ,$ GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO AX NOMINAL +TOL -TOL MEAS DEV OUTTOL MAX MIN D 0.0980 0.0025 0.0025 0.0980 0.0000 0.0000 0.0980 0.0980 ---------#---------- END OF DIMENSION LOC2 DIM LOC3= LOCATION OF CYLINDER CYL3 UNITS=IN ,$ GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO AX NOMINAL +TOL -TOL MEAS DEV OUTTOL MAX MIN D 0.0980 0.0025 0.0025 0.0980 0.0000 0.0000 0.0980 0.0980 ---------#---------- END OF DIMENSION LOC3 PRINT/REPORT,EXEC MODE=END,$ TO_FILE=ON,PROMPT,AUTO OPEN=OFF,$ TO_PRINTER=OFF,COPIES=1,$ TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$ REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$ TO_EXCEL=OFF,$ PREVIOUS_RUNS=DELETE_INSTANCES COMMENT/REPT, second report FCFLOC1 =POSITION : CYL1,CYL2,CYL3 FEATCTRLFRAME/SHOWNOMS=YES,SHOWPARAMS=YES,SHOWEXPANDED=YES, CADGRAPH=OFF,REPORTGRAPH=OFF,TEXT=OFF,MULT=10.00,ARROWDENSITY=100,OUTPUT=BOTH,UNITS=IN, COMPOSITE=NO,FIT TO DATUMS=NO,DEV PERPEN CENTERLINE=OFF,OUTPUT ALIGNMENT=Datum Reference Frame CUSTOMIZED DRF=NO STANDARDTYPE=CUSTOM SIZE TOLERANCES/3,DIAMETER,0.1005,0.0025,0.0025 PRIMARY DIMENSION/POSITION,DIAMETER,0.015,MMC,<PZ>,<len>,A,B,C SECONDARY DIMENSION/,<tol>,<MC>,<dat>,<dat>,<dat> NOTE/FCFLOC1 FEATURES/CYL1,CYL2,CYL3,, Set <NEW> CYL1 <NEW> CYL2 <NEW> CYL3 <NEW> DIM LOC1= LOCATION OF CYLINDER CYL1 UNITS=IN ,$ GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO AX NOMINAL +TOL -TOL MEAS DEV OUTTOL MAX MIN D 0.0980 0.0025 0.0025 0.0980 0.0000 0.0000 0.0980 0.0980 ---------#---------- END OF DIMENSION LOC1 DIM LOC2= LOCATION OF CYLINDER CYL2 UNITS=IN ,$ GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO AX NOMINAL +TOL -TOL MEAS DEV OUTTOL MAX MIN D 0.0980 0.0025 0.0025 0.0980 0.0000 0.0000 0.0980 0.0980 ---------#---------- END OF DIMENSION LOC2 DIM LOC3= LOCATION OF CYLINDER CYL3 UNITS=IN ,$ GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO AX NOMINAL +TOL -TOL MEAS DEV OUTTOL MAX MIN D 0.0980 0.0025 0.0025 0.0980 0.0000 0.0000 0.0980 0.0980 ---------#---------- END OF DIMENSION LOC3 PRINT/REPORT,EXEC MODE=END,$ TO_FILE=ON,PROMPT,AUTO OPEN=OFF,$ TO_PRINTER=OFF,COPIES=1,$ TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$ REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$ TO_EXCEL=OFF,$ PREVIOUS_RUNS=DELETE_INSTANCES
153010 Global Advantage w/ LSPX1H_T Analog Probe
7107 Global Classic TP20
2019R1 SP1 CAD++
Comment
-
As RIDER pointed out that should work. However a workaround for putting dimensions in 2 times would be the attached script. It just refreshes the report window. I don't even remember where I found it but I use it for the same reason. Just change the .txt extension to .bas and insert in between your print commands.Attached Files
Comment
-
Or simply reload the report template again before the second print command
Code:PRINT/REPORT,EXEC MODE=END,$ TO_FILE=ON,OVERWRITE=C:\CMM Files\2018 R1\Progs\2018 prog.PDF,AUTO OPEN REPORT=OFF,$ TO_PRINTER=OFF,COPIES=1,$ TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$ REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$ TO_EXCEL_OUTPUT=OFF,$ PREVIOUS_RUNS=DELETE_INSTANCES CS2 =REPORT/TEMPLATE, FILENAME= AUTOREPORT.RTP, Section=-1,REPORTMODE=INSERT PARAM/= ENDREPORT/ PRINT/REPORT,EXEC MODE=END,$ TO_FILE=ON,OVERWRITE=C:\Temp\2018 prog.PDF,AUTO OPEN REPORT=OFF,$ TO_PRINTER=OFF,COPIES=1,$ TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$ REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$ TO_EXCEL_OUTPUT=OFF,$ PREVIOUS_RUNS=DELETE_INSTANCES
Automettech - Automated Metrology Technology
- 4 likes
Comment
-
Would a copy command work?
Code:PRINT/REPORT,EXEC MODE=END,$ TO_FILE=ON,OVERWRITE=FILE1,AUTO OPEN REPORT=OFF,$ TO_PRINTER=OFF,COPIES=1,$ TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$ REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$ TO_EXCEL_OUTPUT=OFF, PREVIOUS_RUNS=DELETE_INSTANCES $$ NO, FILE/COPY,FILE1,FILE2,OVERWRITE
- 1 like
Comment
-
I'm currently trying RIDER's suggestion and it does work. I put a group on the second report and then turned that group off so that the operators don't see everything twice. I'm still going to mess around with it for a bit.
Comment
-
Originally posted by Douglas View PostI remember the days that I'd write a .bat file to do this... CMMs before windows was a different game
Comment
-
A good maintenance supervisor has a combination of technical knowledge, organizational skills, and management skills which they use to run their team effectively. ... Work hard to stay ahead of problems by performing regular maintenance and making repairs quickly. Check out Microsoft compatibility telemetry from this site.Last edited by jeffkdanies; 01-23-2020, 12:03 PM.
Comment
-
Another work around that I feel is similar to what you’re trying to achieve, but more convenient . Just use some File IO. Assign a variable to carry the part number, and just write it to a txt file at the very end of your program. That way when it runs through you can just go to whatever folder you store your reports and review it.
Comment
Related Topics
Collapse
-
by JamesMannesI have a metal sleeve that goes into a crankcase cylinder before the die is closed and a shot made. This cylinder has cylindricity called out with a...
-
Channel: PC-DMIS for CMMs
08-28-2006, 12:32 PM -
-
by LaserJayThis is probably not "everything" but I tried
I am sure there are more tips and tricks so I will update this post as I discover new info....-
Channel: PC-DMIS for CMMs
01-28-2021, 01:02 PM -
-
by YGOLORTEMI feel like I should be telling PC-DMIS "If dim F10D4_M is OUT Of Tolerance GOTO....:
Will this work?
Code:IF_GOTO/F10D4_M.OUTTOL,GOTO
-
Channel: PC-DMIS for CMMs
08-11-2020, 09:16 AM -
-
by rerun_livesI have several variables assigned and would like to get the Max and Min out of the folowing group of variables. Can someone show me what the syntax would...
-
Channel: PC-DMIS for CMMs
11-01-2007, 11:55 AM -
-
by DaekarHello Everybody,
We use checksheets at my place of employment, and often these checksheets have dimensions which apply to many features...-
Channel: PC-DMIS for CMMs
12-16-2009, 06:55 PM -
Comment