TaskModifyPosition Method (String, TextRange) |
Modifies the data of the first rob target found in the context of the
TextRange parameter.
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax Exceptions Exception | Condition |
---|
ArgumentException | If no data that can be modified is found or the data is wrong.
An exception is also thrown if the active tool and work object differ from the instruction. |
Examples This example modifies the first position in a specific area and always checks
the external axis when modifying a position.
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];
TextRange tr = new TextRange(10,0,10,-1);
firstTask.ModifyPosition("MyTest", tr);
See Also