RobotStudio event

How to create new empty station?



Hi,

once it was possible to create new empty stations using the API.

ABB.Robotics.RobotStudio.Stations.Station station = new ABB.Robotics.RobotStudio.Stations.Station();
...
ABBInternal.StationManagement.GraphicWindow gw = new ABBInternal.StationManagement.GraphicWindow(station);
ABB.Robotics.RobotStudio.Environment.UIEnvironment.Windows.Add(gw);


Its because Im using VisualStudio 2010 and I get the error "...indirect dependency....":

"PresentationFramework, Version=3.0.0.0, Culture=neutral....."
"WindowsBase, Version=3.0.0.0, Culture=neutral, ..."


When I change the target  framework to .NET 3.5, everything is fine, but I need .NET 2.0.

Can anybody help?



apox2010-07-12 13:22:48

Comments

  • Hi,



     

    are you targeting .NET 2.0 when you get this problem?

     

    I have not seen this problem before.

     

    Can you please take a look at this thread and see if your problem is similar:


    Best Regards, Niklas Skoglund
    ABB Robotics

    Developer Center
    RobotStudio Blog
  • Hi,
     

    please be aware that you are using an internal type (ABBInternal.StationManagement.GraphicWindow) which may change without further notice in the next release.

     

    As you need to use it, maybe it should be public. Can you tell me a bit of your application, and what you are doing with the window.

    Best Regards, Niklas Skoglund
    ABB Robotics

    Developer Center
    RobotStudio Blog
  • apox
    apox ✭✭
    Hi,

    in the case of having no station loaded i just want to create a new empty station when i start my addin. I can use GraphicWindow in Visual Studio 2005 but not in Visual Studio 2010, both targeting .NET 2.0 - strange.