Jump to content

Formula/Parameter File


---
 Share

Recommended Posts

I'm writing a program for a part family, and so far the PCM works fine, nominals and models change, but when I try to use
function key to access the parameter list, I get an error message. I'm able to manually type in my variable formula.

clearCAD()
dir = getActualInspectionDir()

Part_Size = inquireList("Which size part would you like to run?", "Size_3", "Size_4")
selectCase Part_Size
case "Size_3"
runPCMFile(dir + "\Size_3.txt")
loadCADFile(dir+"\SZ_3.sab")
case "Size_4"
runPCMFile(dir + "\Size_4.txt")
loadCADFile(dir+"\SZ_4.sab")

endSelect
150_1324afa67d380a0a57a372a32a9bf17b.jpg
Size_4.txt
Size_3.txt
Link to comment
Share on other sites

I think we went down this road before, but im not 100% sure how it was resolved.
Try using readPCMFile instead of runPCMFile??

if itemSelected=="Size_3" then
readPCMFile(getActualInspectionDir()+"\Size_3.para")
endif
if itemSelected=="Size_4" then
readPCMFile(getActualInspectionDir()+"\Size_3.para")
endif
Link to comment
Share on other sites

 Share

×
×
  • Create New...