RS SDK select targets from path
AndreasB
✭
Hello,
i started my first addin with RS5.14 and i have some basic questions.
The first one is, what is the easiest way to select all targets from a path? for example from the active path.
My destination is blank or show selected targets from a path.
Thanks for your help.
0
Comments
-
Maybe this will help you?
example
Then if it is a "real" selection you want, as in the blue highlight in the browser etc, then you add it to the ProjectSelection.
linkBut do you really want the targets or do you actually want the instructions?John
Developer Center0 -
Hello John,this is my current solution:RsInstructionArgument myInstrArg;foreach (RsInstruction myRsInstruction in station.ActiveTask.ActivePathProcedure.Instructions){if (myRsInstruction.InstructionArguments.Contains("ToPoint")){myRsInstruction.InstructionArguments.TryGetInstructionArgument("ToPoint", out myInstrArg);foreach (RsTarget myRsTarget in station.ActiveTask.Targets){if (myRsTarget.Name == myInstrArg.Value && myRsTarget.Visible == true){myRsTarget.Highlight(Color.Yellow);break;}}}}Is there an another way? What i need is, all points that belonging to a path.Thanks0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 799 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings