GraphicComponent Color
Options
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.4K RobotStudio
- 381 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 737 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings