[Cl...] Posted February 6, 2020 Share Posted February 6, 2020 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 Size_4.txt Size_3.txt Link to comment Share on other sites More sharing options...
[Ro...] Posted February 7, 2020 Share Posted February 7, 2020 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 More sharing options...
[Cl...] Posted February 7, 2020 Author Share Posted February 7, 2020 Thanks, that seemed to fix it. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in