hexagon logo

Has anyone made a script to list all used probes (tips) in all programs?

Has anyone made a script to list all used probes (tips) in all programs (in a certain folder)? Technically it should be possible - get a list of all programs, open them one after another, scan for LOADPROBE and TIP commands, collect data.

But has anyone already done it? And is able to share?
  • Unfortunately not (yet). More prioritized things show up all the time...
  • Had a bit of 'free time' today, and got a Excel spreadsheet working that can list the names of all .PRG-files in a folder, for each of them list all (unique) probe files referenced, and for each probe file which (unique) tips are used (unsorted). Quick and dirty, and maybe not the best format yet for arbitrary data massaging, but part of the way to the goal...

    Notes:

    Clicking Clear clears all data.
    Clicking Add will scan the given folder, open each program in PC-DMIS, scan for probes and tips and add them at the end of the current list. Scanning the same folder twice will add each entry twice!

    BEWARE! It can take a VERY long time to scan a folder with many part programs, I don't know how to stop it prematurely (except Task Manager), and everything might crash if you have any programs which can't load in PC-DMIS or have other problems giving dialog boxes in PC-DMIS.

    Attached Files
  • Maybe this application could be coded by the devs (parsing PRG for probefiles/angles)...
  • Did you try my Excel sheet? I'm interested to know if it works for others than me...
  • Did you try my Excel sheet? I'm interested to know if it works for others than me...


    I had attempted to use it. We are migrating all of our programs to a secure server and before that disperses everything to there own folders I wanted to get a tip list while all 950+ programs were in one folder.

    I would put it in the folder with all the programs. I was unsure of exactly what file path the folder had to be so I tried a few. But I kept getting "Compile error: Can't find project or library." I ran out of time to play with it so I moved on.

    It would be extremely beneficial though.
  • Ahh - it's linked to the PC-DMIS 2015.1 (or possibly 2016) type library - you need to link it to your version of PC-DMIS. In my Excel that's done under Developer -> Visual Basic -> Tools -> References (translated from Swedish, so I'm not sure the menu items are named correctly).
  • Ahh - it's linked to the PC-DMIS 2015.1 (or possibly 2016) type library - you need to link it to your version of PC-DMIS. In my Excel that's done under Developer -> Visual Basic -> Tools -> References (translated from Swedish, so I'm not sure the menu items are named correctly).


    I will try it tonight. It's not something I can run right now. I'll let you know how it works.
  • Tried it with one program with one probefile/angle. Worked as advertised.
  • Once I linked it to the proper location it did work.

    I have to go in and clean up some of the files though. One was corrupted and it would stop it from continuing. Others had an old datapage+ location that no longer exists so I had to play whack-a-popup with the prompt messages.

  • Actually I think it's quite good to get it verified that all pp:s still load into PC-DMIS without errors. Better to get the error message now, than wait until there are hundreds of that part standing outside the door, waiting to be measured ...