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
  • Comment input

    This is what I currently have:
    If ObjCmd.IsComment Then
    StrDimID = ObjCmd.CommentCommand.ID
    Clock = ObjCmd.CommentCommand.Input

    And this is what I have tried:
    Clock = ObjCmd.GetText(COMMENT_TYPE,0)
    Clock = ObjCmd.GetText(COMMENT_FIELD, 1)
    Clock = ObjCmd.GetText(OUTPUT_TYPE, 0)


    So far all of these have returned a 0 for me. Any suggestions on what else to try to get that operator input to export into the SPC software?
Reply
  • Comment input

    This is what I currently have:
    If ObjCmd.IsComment Then
    StrDimID = ObjCmd.CommentCommand.ID
    Clock = ObjCmd.CommentCommand.Input

    And this is what I have tried:
    Clock = ObjCmd.GetText(COMMENT_TYPE,0)
    Clock = ObjCmd.GetText(COMMENT_FIELD, 1)
    Clock = ObjCmd.GetText(OUTPUT_TYPE, 0)


    So far all of these have returned a 0 for me. Any suggestions on what else to try to get that operator input to export into the SPC software?
Children
No Data