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
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 799 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings