Esta es la manedera como se pudo estraer informacion de la CMM utilizando PCM

Presettings
LN = getRecordHead("order")

Postsettings

rotateReference()

//Dims to Excel
filePath = "C:\Documents and Settings\Administrator\Desktop\Tang Flat Profile_.0934\feature 200.xlx\"
ext = ".csv"

//N1 = getRecordHead ("Grind Tang_Rev. B 9.22.16_543_.0934")
//dirPath = filePath + N1 + (" ") +date()+"  "+time()+ ext
Lot = getRecordHead("order")
partnum=getRecordHead("partnbinc")
dirPath=filePath+Lot+ (" ") +date()+"  "+time()+ ext
display(dirPath)
if fileExists(dirPath) == true
      deleteFile(dirPath)
endif
//#1
DIM200_1 =   getActual("200 - Profile_1").actual

addToFile(dirPath,date())
addToFile(dirPath,time())
addToFile(dirPath,("Lot Number : "),LN)
addToFile(dirPath,("200 - Profile_1 : "),DIM200_1)

El problema es que va generando puros archivos no se guarda solo en uno