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.5K RobotStudio
- 396 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)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings