Need help with RS-addin development on C#
Hello RS-Community
I would like to retrieve the object properties (position, name ...) of a graphic object when clicked with the mouse pointer on it. Did it with the "GraphicPicker Class"attempts. But do not come on.
Philipp.Gastel2012-02-08 21:27:31
0
Comments
-
I found out there, this is the solution
handler:
GraphicPicker.GraphicPick + = newABB.Robotics.RobotStudio.Stations.Forms.GraphicPickEventHandler(OnSelection);
argument:
static void OnSelection (object sender, GraphicPickEventArgs e)
{
Logger.AddMessage (new LogMessage (e.PickedObject.Name + " " + Convert.ToString (e.PickedPosition)));
}
Philipp.Gastel2012-02-08 21:27:030
Categories
- All Categories
- 5.5K RobotStudio
- 395 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)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings