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
  • It gives me a zero, like it is null. My guess is either I am working with the wrong set up for the variables or that I am calling them out wrong. I am just not sure. So if I say that the measurement of circ2 dia is the output for reading1, I get a zero, but the roundness of circ2 gives me the measurement. I really am not sure what is wrong in the code, but it is not working quite as expected.

    Thanks for any ideas you may have to fix this issue.
Reply
  • It gives me a zero, like it is null. My guess is either I am working with the wrong set up for the variables or that I am calling them out wrong. I am just not sure. So if I say that the measurement of circ2 dia is the output for reading1, I get a zero, but the roundness of circ2 gives me the measurement. I really am not sure what is wrong in the code, but it is not working quite as expected.

    Thanks for any ideas you may have to fix this issue.
Children
No Data