SyncData gets error

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
- 398 UpFeed
- 20 Tutorials
- 13 RobotApps
- 300 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 330 IRC5
- 66 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 826 RAPID Programming
- 9 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings