hexagon logo

How to make CSV file for surface point nominal xyz with IJK

Parents
  • I would create a feature set with all surface points, then create a COP from it and export it as xyz file - rename it as csv.

    You can also loop like this :

    FPTR FILE/OPEN/TOTO.CSV/WRITE

    ASSIGN/V1=1

    DO/

    ASSIGN/V2="S"+V1

    WRITE,FPTR,V2.X+","+V2.Y+","+V2.Z+","+FORMAT("%3.8f",V2.I)+","+FORMAT("%3.8f",V2.J)+","+FORMAT("%3.8f",V2.K)

    ASSIGN/V1=V1+1

    UNTIL/V1==(number of surface points +1)

Reply
  • I would create a feature set with all surface points, then create a COP from it and export it as xyz file - rename it as csv.

    You can also loop like this :

    FPTR FILE/OPEN/TOTO.CSV/WRITE

    ASSIGN/V1=1

    DO/

    ASSIGN/V2="S"+V1

    WRITE,FPTR,V2.X+","+V2.Y+","+V2.Z+","+FORMAT("%3.8f",V2.I)+","+FORMAT("%3.8f",V2.J)+","+FORMAT("%3.8f",V2.K)

    ASSIGN/V1=V1+1

    UNTIL/V1==(number of surface points +1)

Children
No Data