
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
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 6 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings