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
  • For some reason, this does not like it when I try to reply with the quote.

    This is what I have learned:
    MeasHeight returns a zero, but the MeasLenght returns a value, even if that is a false value. LOL. So there is some progress. To try to get the correct value in there, I even tried ObjCmd.FeatureCommand.DimMeasured, but that also returned a zero. So no surprises there.

    At the same time, I have tried the bit of code that you suggested above, and I always get a return of zero.

    So, is there anything else you would suggest? I will keep combing the help section and the book, but I am just taking shots in the dark.
Reply
  • For some reason, this does not like it when I try to reply with the quote.

    This is what I have learned:
    MeasHeight returns a zero, but the MeasLenght returns a value, even if that is a false value. LOL. So there is some progress. To try to get the correct value in there, I even tried ObjCmd.FeatureCommand.DimMeasured, but that also returned a zero. So no surprises there.

    At the same time, I have tried the bit of code that you suggested above, and I always get a return of zero.

    So, is there anything else you would suggest? I will keep combing the help section and the book, but I am just taking shots in the dark.
Children
No Data