Hello,everyone,
I have learned a little about using
C++ for PC_DMIS secondary development.
Here I am using
BasicScan Object to add scan points,there were some errows happend caused that
0 points were generated.But I don't know why...
Here is a part of my code.
Any comments are welcome...
if(!ConnectPcdmis()) // Connect PC_DMIS,if failed , exit
{
return;
}
// Check if there is an open measuring program. If not, an error is reported
if(Ppms.GetCount() < 1)
{
AfxMessageBox("You need to open at least one measurement program to do this~",MB_ICONWARN ING);
ReleasePcdmis();
return;
}
Ppm = App.GetActivePartProgram(); // Connect to the current PC_DMIS measurement program
// Test section, add command
Cmds = Ppm.GetCommands(); // Connect to the set of commands for this measure