Deletes the RAPID program of the task from the controller program memory.
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax public void DeleteProgram()
Exceptions Remarks All program modules of the task will be deleted from program memory. If they have been saved they will however remain in the controller file system.
Examples This example deletes the RAPID program of task T_ROB1 from the controller program memory.
Controller c = new Controller();
Task tRob1 = null;
private void _btnUnload_Click(object sender,EventArgs e)
{
try
{
tRob1 = c.Rapid.GetTask("T_ROB1");
tRob1.DeleteProgram();
}
catch (System.Exception ee)
{
GTPUMessageBox.Show(this,null,"The system did not succeed in deleting the program. Message:" + ee.Message,
"Deletion Error",
System.Windows.Forms.MessageBoxIcon.Hand,
System.Windows.Forms.MessageBoxButtons.OK);
}
}
See Also