Deletes the RAPID module the
Module object refers to from program memory.
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
Exceptions
RemarksThis method only removes the module from the controller program memory, i.e. the file containing the
RAPID module will not be deleted.
ExamplesThis example goes through all tasks in the controller and deletes all modules with a specified name.
private void DeleteModules(Controller c,string stModName)
{
Task[] tasks;
Module m;
try
{
tasks = c.Rapid.GetTasks();
Modules modules;
foreach (Task t in tasks)
{
m = t.GetModule(stModName);
m.Delete();
}
}
catch (GeneralException ee)
{
}
catch (System.Exception ee)
{
}
finally
{
}
}
See Also