More ValueTypes in the xml for a SmartComponent
Hi Everyone!
Im having a problem with SmartComponent and CodeBehind.
Trying to implement a SmartComponent found in a zip file here at the Forum.
Reading IO:s from a controller choosen in a dynamic property from the XML file.
<DynamicProperty name="Controller" valueType="ABB.Robotics.RobotStudio.ProjectObject">
<DynamicProperty name="Controller" valueType="ABB.Robotics.RobotStudio.Stations.RsIrc5Controller>
Im thinking that i need to add some references to the xml file, but I dont know how.
Best regards,
Jens
0
Comments
-
Hi Jens,
Could you link to the topic where you got the zip?Now RobotStudio will not handle any valueTypes outside of its own defined list.To get the list in codebehind you'd start typing until valueType=" then you will get the RobotStudio defined list.Please note that this is the same list as the one in the User Interface:Sometimes I find it easier to first do something in the UI and then export it to XML and cut&paste it from there. That way I know it's syntax is correct.John
Developer Center0 -
Hi!The zip file:http://forums.robotstudio.com/forum_posts.asp?TID=5024&KW=smart+component+zip&PID=15540#15540We found the valueType list in the included GraphicComponentSchema.xsd, but i guess we cant just add the reference there?We tried it, but it didnt work.It was the "TODO: the rest" comment that got me wondering if someone just didnt have time to finish the list.We worked around the problem by just reading the mechanism, and then morphing it into an RsIrc5Controller to later get the IOSignals.Thanks,Jens0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 799 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings