Click or drag to resize

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
C#
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: Boolean
Returns true if the RAPID data instance was successfully deleted. Otherwise false or an exception.
Exceptions
ExceptionCondition
GeneralExceptionA General Exception has occurred.
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");
//pointtype is the user defined data type and its definition is in another module
mod.DeleteRapidData("SubPath2","pointtype", true);
...
See Also