Need help with RS-addin development on C#
Options
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.6K RobotStudio
- 400 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 345 IRC5
- 73 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 844 RAPID Programming
- 20 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 108 Collaborative Robots
- 5 Job listings