ModuleDeleteRapidData Method (String, String, Boolean) |
Removes a specified RAPID data instance from the module.
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax public bool DeleteRapidData(
string dataName,
string dataType,
bool forceToDelete
)
Parameters
- dataName
- Type: SystemString
Name of the RAPID data instance. - dataType
- Type: SystemString
Name of the data type. - forceToDelete
- Type: SystemBoolean
True if the instance should be deleted even if the execution context is lost, else false.
Return Value
Type:
BooleanReturns true if the RAPID data instance was successfully deleted. Otherwise false or an exception.
Exceptions Examples This example always deletes a user defined RAPID data instance.
using ABB.Robotics;
using ABB.Robotics.Controllers;
using ABB.Robotics.Controllers.RapidDomain;
...
Controller c = new Controller();
Task[] allTasks = c.Rapid.GetTasks();
Task firstTask = allTasks[0];
Module mod = _task.GetModule("Conveyor");
mod.DeleteRapidData("SubPath2","pointtype", true);
...
See Also