hexagon logo

Dmis to create a folder????

Wondering can PC-Dmis create a folder and then save PDFs to that folder under part number????
e.g.:
writing to G:\CMM\Data\ "new folder" \ "part number"

P
Parents
  • I think you can do it only with the PC-DMIS toolbox :
    V1=FILE/DIALOG, (to choose the folder: you need to put a file in this folder, like a .txt, for example - In file dialog, you can do it, by a right clic)
    ASSIGN/V2=V1
    ASSIGN/V3=0
    DO/ count the number of \ in the name of folder
    ASSIGN/V4=INDEX(V2,"\\")
    ASSIGN/V2=RIGHT(V2,LEN(V2)-V4)
    ASSIGN/V3=V3+1
    UNTILV4==0
    ASSIGN/V5=GETTEXT(191,1,1) take the name of the part
    ASSIGN/V6=V5+".PDF"
    ASSIGN/V7=LEN(ELEMENT((V3)-2),"\\",V1))
    ASSIGN/V8=LEN(V1)-V7+2
    ASSIGN/V9=LEFT(V1,V8)
    ASSIGN/V10=V9+V6
    PRINT/REPORT,EXEC MODE=END,$
    TO_FILE=ON,OVERWRITE=V.PDF,$ print a report PDF with the part name
    (...)
Reply
  • I think you can do it only with the PC-DMIS toolbox :
    V1=FILE/DIALOG, (to choose the folder: you need to put a file in this folder, like a .txt, for example - In file dialog, you can do it, by a right clic)
    ASSIGN/V2=V1
    ASSIGN/V3=0
    DO/ count the number of \ in the name of folder
    ASSIGN/V4=INDEX(V2,"\\")
    ASSIGN/V2=RIGHT(V2,LEN(V2)-V4)
    ASSIGN/V3=V3+1
    UNTILV4==0
    ASSIGN/V5=GETTEXT(191,1,1) take the name of the part
    ASSIGN/V6=V5+".PDF"
    ASSIGN/V7=LEN(ELEMENT((V3)-2),"\\",V1))
    ASSIGN/V8=LEN(V1)-V7+2
    ASSIGN/V9=LEFT(V1,V8)
    ASSIGN/V10=V9+V6
    PRINT/REPORT,EXEC MODE=END,$
    TO_FILE=ON,OVERWRITE=V.PDF,$ print a report PDF with the part name
    (...)
Children
No Data