Gets a
Routine object to a specific RAPID routine.
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax public Routine GetRoutine(
string routineName
)
Parameters
- routineName
- Type: SystemString
Name of the routine.
Return Value
Type:
RoutineA
Routine object to access the routine. If the routine does not exist, the return value is
null.
Exceptions Remarks NOTE:When the returned instance is no longer needed you must call its Dispose method.
Examples This example uses the method
GetRoutine(String)to create a
Routine object representing a RAPID routine.
private Routine GetMyRoutine(Module m, string stRoutName)
{
Routine routine;
try
{
routine = m.GetRoutine(stRoutName);
}
catch (GeneralException ee)
{
}
catch (System.Exception ee)
{
}
return routine;
}
See Also