SyncData gets error
Options

chen
✭
in RobotStudio
I am trying to use the following command to syncronize a work object from a macro to the VC:
station.ActiveTask.SyncData("Module1/workObjBattery", SyncDirection.ToController, new System.Collections.Generic.List<SyncLogMessage>());
However, I always get this error:
The given key was not present in the dictionary.
Apparently the name Module1/workObjBattery is correct. What could have gone wrong here?
Thanks,
Sam
chen2008-7-3 21:1:330
Comments
-
Hi
Looks like this only works if you create a real addin and not thru VSTA.Per Svensson
Robotics and Vision Specialist
Consat Engineering0
Categories
- All Categories
- 5.6K RobotStudio
- 400 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 346 IRC5
- 73 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 844 RAPID Programming
- 20 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 108 Collaborative Robots
- 5 Job listings