hexagon logo

Import CSV via Script

This is something I thought would be extremely easy, yet I'm getting no where.

I've tried PartProgram.Import("C:\file\location.csv") as well as PartProgram.Import2("C:\file\location.csv", true)

PartProgram.Import("C:\file\location.step") works as it should for importing CAD.

What am I missing? I've going through the object library and there is no mention of importing a csv but the Import() and Import2() do mention importing another format into the measurement routine.

thanks in advance
Parents
  • Import2() will import a .dms file no problem.

    I'm trying to import csv data without having to do it manually. There is a lot going on before and after in the script and everything works except this one part. If I can get it to work I simply type the part number in and it builds the entire program.
Reply
  • Import2() will import a .dms file no problem.

    I'm trying to import csv data without having to do it manually. There is a lot going on before and after in the script and everything works except this one part. If I can get it to work I simply type the part number in and it builds the entire program.
Children
No Data