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
  • No need to complicate things and reinvent exiting wheels. Every dimension has a 'print flag' which can be NONE, REPORT, STATS, BOTH. That's the "DmisDimension.OutputMode" that my script above checks (although that script writes to a file everything which doesn't have the flag "NONE", no discrimination between REPORT/STATS/BOTH).

    If/when the programs have this flag correctly set for all dimensions it's easy. Those that are flagged STATS or BOTH are the ones that should be sent on, irrespective of their name.

    The SPC system may place restrictions on names, too, but that shouldn't concern this script.

    (Unless I have completely misunderstood something)

    The only restriction on names that I am aware of is that they can't be more than 50 characters long, but the varibles that the information is going into are already prenamed and in existing collection plans. Thanks so much for the help.
Reply
  • No need to complicate things and reinvent exiting wheels. Every dimension has a 'print flag' which can be NONE, REPORT, STATS, BOTH. That's the "DmisDimension.OutputMode" that my script above checks (although that script writes to a file everything which doesn't have the flag "NONE", no discrimination between REPORT/STATS/BOTH).

    If/when the programs have this flag correctly set for all dimensions it's easy. Those that are flagged STATS or BOTH are the ones that should be sent on, irrespective of their name.

    The SPC system may place restrictions on names, too, but that shouldn't concern this script.

    (Unless I have completely misunderstood something)

    The only restriction on names that I am aware of is that they can't be more than 50 characters long, but the varibles that the information is going into are already prenamed and in existing collection plans. Thanks so much for the help.
Children
No Data