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
  • I discovered something...I have two planes in the program that I am trying to pull the measurements of. One, PLANE5, is a constructed plane and I can pull that data with the MeasZ variable as the GetText(MEAS_Z,0) command. But PLANE4, the one I am having issues with is a measured plane, since a measured diameter is StrDimDiameter = ObjCmd.FeatureCommand.MeasDiam, would a measured plane be StrDimPlane = ObjCmd.FeatureCommand.MeasPlane?
Reply
  • I discovered something...I have two planes in the program that I am trying to pull the measurements of. One, PLANE5, is a constructed plane and I can pull that data with the MeasZ variable as the GetText(MEAS_Z,0) command. But PLANE4, the one I am having issues with is a measured plane, since a measured diameter is StrDimDiameter = ObjCmd.FeatureCommand.MeasDiam, would a measured plane be StrDimPlane = ObjCmd.FeatureCommand.MeasPlane?
Children
No Data