05-21-2021, 08:10 AM
Hello
I am currently working on a Plugin using the Qt Creator and the c++ library but i can't insert a MoveL instruction in a Program.
The Tool and the frame are inserted but the MoveL not.
Can anybody help me? It is most likely a small dumb mistake.
I am currently working on a Plugin using the Qt Creator and the c++ library but i can't insert a MoveL instruction in a Program.
The Tool and the frame are inserted but the MoveL not.
Can anybody help me? It is most likely a small dumb mistake.
Code:
IItem *Gcode_Prog= RDK->getItem("Gcode",IItem::ITEM_TYPE_PROGRAM);
if(Gcode_Prog!=NULL){
Gcode_Prog->Delete();
}
Gcode_Prog=RDK->AddProgram("Gcode");
IItem *tool=RDK->getItem("toolexcali",IItem::ITEM_TYPE_TOOL);
IItem *frame=RDK->getItem("Mitte",IItem::ITEM_TYPE_FRAME);
Gcode_Prog->ShowInstructions(false);
Gcode_Prog->setPoseTool(tool);
Gcode_Prog->setPoseFrame(frame);
Gcode_Prog->setSpeed(100);;
Mat mati=Mat::XYZRPW_2_Mat(100 ,200,200,2,3,4);
Gcode_Prog->MoveL(mati);
RDK->Render();