RobotStudio event

GraphicComponent Color

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]

Comments