hexagon logo

Help with OLE Automation

Now that I have information in a way that imports and exports the information correctly, I have been tasked with creating an OLE to automatically import the data into the SPC software. I have one that sort of works (as in opens the program, logs in, opens the right collection plan, etc) and I can get put in static information, but I am unsure how to call the information out of PC DMIS to have it be placed in the spots we need in the SPC software being used.

Has anyone else done this? Can anyone explain to me how find the variable and the measurement output in PC DMIS? I am using version 4.2 if that helps any.

Thanks so much.
Parents
  • Kind of.

    The absolutely easiest thing would be to name those comment boxes to a specific name, say CLOCKNR and JOBNR.
    You would then enumerate through the commands like you just did, but looking for a command of the comment type.
    When a comment command has been found, you check the ObjCmd.ID if it matches CLOCKNR or JOBNR if it does, then you have found your comment/s.
    Then fetch the comment input value, can't say off the top of my head (not at work now) how to do it, but it is feasible.
Reply
  • Kind of.

    The absolutely easiest thing would be to name those comment boxes to a specific name, say CLOCKNR and JOBNR.
    You would then enumerate through the commands like you just did, but looking for a command of the comment type.
    When a comment command has been found, you check the ObjCmd.ID if it matches CLOCKNR or JOBNR if it does, then you have found your comment/s.
    Then fetch the comment input value, can't say off the top of my head (not at work now) how to do it, but it is feasible.
Children
No Data