几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   PC-DMIS二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=153)
-   -   Getting data from PCDMIS (http://www.dimcax.com/hust/showthread.php?t=1574)

huangyhg 2007-11-26 11:32 AM

Getting data from PCDMIS
 
I am looking for a breakdown of how PCDMIS handles data output from a part (probed data).
From the many posts in this forum that I have read; I get the impression one must retrieve data from PCDMIS via macros or VB/VBA code!?

Is there any method to get a "text delimited" or "csv" file output of reported data?
Or can the "printed" report be saved as a "text delimited" file or as a text file as WYSIWYG?

All help is appreciated!
QC Rick

huangyhg 2007-11-26 11:33 AM

回复: Getting data from PCDMIS
 
I write my data to text files a lot, small example of comma delimited (delimit as you choose):

Code:
FPTR =FILE/OPEN,C:\DATA COLLECTION\6203-13-341 MAZAK (1).TXT,APPEND
FILE/WRITELINE,FPTR,CIR1.D + "," + CIR2.D
FILE/CLOSE,FPTR This found in file I/O.
craiger_ny

huangyhg 2007-11-26 11:34 AM

回复: Getting data from PCDMIS
 
Is the file write required for each segment (line?) of data? Or can the entire report be sent to a file?
QC Rick

huangyhg 2007-11-26 11:35 AM

回复: Getting data from PCDMIS
 
Unfortunately you would have to write an output for each DIM.
cmmguy

huangyhg 2007-11-26 11:35 AM

回复: Getting data from PCDMIS
 
Write line will write a line of data, you specify what is in the line. It adds a carriage return and line feed at the end. You must pecify (hard code) what gets sent it does not send a report, just what you tell it to. In my example I am sending the diameter of circle 1 (we'll say it is 1.125) and a comma and the diameter of circle 2 (we'll say is 1.312) so your text file will have:

1.125,1.312

Make sure you use append of it will overwrite.
craiger_ny

huangyhg 2007-11-26 11:36 AM

回复: Getting data from PCDMIS
 
You could export the results as a generic txt file, but that will send everything in the report....
bw_bob


所有的时间均为北京时间。 现在的时间是 06:46 PM.