
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.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 6 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings