GraphicComponent Color
in RobotStudio
Hi,
I'm trying to change the Color of a GraphicComponent from the ABB.Robotics.RobotStudio.Station namespace, but it raises an exception saying "The given key was not present in the dictionary." Did anyone encounter this serious headache problem ever ?
Some code ...
[CODE]
try{
GraphicComponent boxesGroup = activeStation.GraphicComponents["BoxGroup1"];
boxesGroup.Color = System.Drawing.Color.Red; //Raises the exception
}
catch(Exception ex){
}
[/CODE]
0
Comments
-
Hi,are you using VSTA or have you created your Add-In with Visual Studio?VSTA does not support using types from the Windows.Drawing namespace.To set the color of a graphic component you can use this method on the VSTABridge class:0
-
Thanks Niklas, that worked0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 364 IRC5
- 81 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 853 RAPID Programming
- 33 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings
