API "Modify Position" event
Saibel
✭
in RobotStudio
Hi!
I select a MoveLJ instruction in a path, right-click on it and select "Modify position".
Does it exist an event triggered by the action? I have not found any in the documentation.
Thank you!
Best regards,
Sergej Saibel
Sergej Saibel
0
Comments
-
Hi Sergej,
The static event ProjectObjectChanged will be raised with ChangeType = Transform.
Note that the event is actually sent two times, one for the RsRobTarget and one for the RsTarget.
example:
[code]
...
ProjectObject.ProjectObjectChanged += new ProjectObjectChangedEventHandler(ProjectObject_ProjectObjectChanged);
...
void ProjectObject_ProjectObjectChanged(object sender, ProjectObjectChangedEventArgs e)
{
if (e.ChangeType == ProjectObjectChangeType.Transform)
{
if (e.ChangedObject is RsTarget)
{
...
}
}
}
[/code]
regards,
Johannes
Johannes Weiman
Software Engineer
ABB Robotics0 -
Hi Johannes!Thank you very much, I will try it. Do you have some documents about all of the events in RS?The current API documentation is not so complete.Best regards,
Sergej Saibel0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings