So I have a script that runs Process Capability on a table of data. I am able to run it automatically using this solution, https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39855. I am now trying to import the spec sheet automatically too. Right now users automatically have 2 sheets. 1 with data and 1 with the spec info. I can make a solution that takes the spec sheet info and copys it to the column properties, but i would rather have it run in the code in case users want to use the data sheet with another spec file.
my code so far...
yyy = Eval( Parse("summ_table << Process Capability(
Process Variables( " || TheVars || "), <<works
Spec Limits(Import Spec Limits(\!"" || Spec ||"\!")) <<not working
);"
)
);
spec holds the open spec tables name. i can easly get it in these 2 formats.
"specTable1.jmp"
"DataTable("specTable1.jmp")"
i got the spec limits code from this blog -- https://community.jmp.com/t5/JMPer-Cable/3-ways-to-load-your-specification-limits-into-Process-Capability/ba-p/34189