hexagon logo

Badge Scan for Employee

Hello All,

Is there any line of code i can enter to make PC-DMIS search for an ID number inside an excel file or something? The reason i ask is we have been having unauthorized users using the CMM without training and we want to be able to hold them accountable. We would also like for that same transaction to be able to place there info into the report as well in case they are using someone else badge because they don't have training to hold them both accountable.

Parents
  • I would add here: with a bit more research you can add all these in an external subroutine to holds a header and a footer. All programs call this sub twice (beginning/end). This way when you need modifications you just do it to the subroutine and not all your programs (initial modification for the calling of the sub is needed though). This is what we do where I work.

  • Subroutines confuse me a bit. I could never find a true blue step by step guide to understanding them in a way that I could wrap my head around them. So I just use the same script/code in all my programs, then call in an external document for the variables

  • Well the gain is that by using them you can modify all programs just by modifying the subroutine. In our case where we have hundreds of programs stored in a server where modification is not possible and multiple steps are required (time also) to adjust anything, using a subroutine makes a big difference. Examples: do I need to add extra info in the header? Do I need to stop printing and use other exporting methods? Add a note? Add an operator input? Etc etc... All these realise just by modifying 1 easy to modify subroutine.

Reply
  • Well the gain is that by using them you can modify all programs just by modifying the subroutine. In our case where we have hundreds of programs stored in a server where modification is not possible and multiple steps are required (time also) to adjust anything, using a subroutine makes a big difference. Examples: do I need to add extra info in the header? Do I need to stop printing and use other exporting methods? Add a note? Add an operator input? Etc etc... All these realise just by modifying 1 easy to modify subroutine.

Children