Click or drag to resize

ModuleCreateRoutine Method (String, Boolean)

Creates an empty routine in 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 CreateRoutine(
	string routineName,
	bool bLocal
)

Parameters

routineName
Type: SystemString
Name of the routine.
bLocal
Type: SystemBoolean
True if it should be a local routine, false if global.

Return Value

Type: Boolean
Returns true if operation succeed; otherwise false.
Examples
This example creates a local routine, "Routine1", in "MyModule".
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("MyModule");
mod.CreateRoutine("Routine1", true);
...
See Also