First I check all Controllers:
foreach (ControllerObjectReference controllerReference in ControllerManager.ControllerReferences)
…
Then all the Tasks der Controller checked: (ABB.Robotics.Controllers.Controller)
var rapidTasks = controller.Rapid.GetTasks();
Then the Modules should be saved:
{
private readonly ABB.Robotics.Controllers.RapidDomain.Task_task;
…
…
string f = “d:\01_DATEN\03_Temp\” + _task.Name;
try
{
_task.SaveProgramToFile(f);
}
catch (Exception ex)
{
Logger.AddMessage("Problem saving file " + f + ex);
}
…..
}