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
  • Import
    This function imports CAD or part data from the indicated file to the measurement routine. The file format is determined by the file name extension of Name.​


    Import2
    Imports from another format into the measurement routine. The parameter indicates if the input should be merged


    It is not clear what Import2 is really importing. Is it measurement commands or something else...?

    What are you trying to accomplish?
Reply
  • Import
    This function imports CAD or part data from the indicated file to the measurement routine. The file format is determined by the file name extension of Name.​


    Import2
    Imports from another format into the measurement routine. The parameter indicates if the input should be merged


    It is not clear what Import2 is really importing. Is it measurement commands or something else...?

    What are you trying to accomplish?
Children