Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
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.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings
