RobotStudio event

API "Modify Position" event

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

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 Robotics
  • 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 Saibel