API "Modify Position" event
Options
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.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 736 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings