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
  • So I have played with the above problem and everything I have tried so far is simply not working. Here is an example, that I sort of based off the solution that DJAMS offered up.

    If ObjCmd = DIMENSION_Z_LOCATION Then
    If ObjCmd.ID = "PLANE4 Z" Then
    DimMeas = ObjCmd.Measured
    End If
    End If

    And I have tried
    DimMeasured = ObjCmd.DimensionCommand.Measured
    ObjCmd.GetText(DIM_MEASURED,0)
    ObjCmd.GetText(MEAS_Z,0)
    And a few more that I simply can't remember right now.

    Maybe I am thinking too simply?
Reply
  • So I have played with the above problem and everything I have tried so far is simply not working. Here is an example, that I sort of based off the solution that DJAMS offered up.

    If ObjCmd = DIMENSION_Z_LOCATION Then
    If ObjCmd.ID = "PLANE4 Z" Then
    DimMeas = ObjCmd.Measured
    End If
    End If

    And I have tried
    DimMeasured = ObjCmd.DimensionCommand.Measured
    ObjCmd.GetText(DIM_MEASURED,0)
    ObjCmd.GetText(MEAS_Z,0)
    And a few more that I simply can't remember right now.

    Maybe I am thinking too simply?
Children
No Data