Forum Migration Notice
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Remove Targets
Stijn
✭
in RobotStudio
Hi,
// Instance active station.
Station stn = Project.ActiveProject as Station;
// Remove the original target.
stn.ActiveTask.Targets.Remove(myTarget);
Logger.AddMessage(new LogMessage("My_Target_1 is removed!"));
MessageBox.Show("target_1 is removed");
I have to delete (remove) a target in the path of robotstudio with C#.
I'm now using the code below to remove the target in my workobject (wobj0), but how should I delete this target in my path ?
// Instance active station.
Station stn = Project.ActiveProject as Station;
// Remove the original target.
stn.ActiveTask.Targets.Remove(myTarget);
Logger.AddMessage(new LogMessage("My_Target_1 is removed!"));
MessageBox.Show("target_1 is removed");
0
Comments
-
HiHere is one way to do it. I guess it will help you continue on
Per Svensson
Robotics and Vision Specialist
Consat Engineering0 -
Hi,Thanks for your help! I tested the code that you suggested and it works like you said.Regards,0
Categories
- All Categories
- 5.7K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 366 IRC5
- 90 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 857 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings