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.

The problem is that I would like to have more valueTypes to choose from. Now the value is read like a Mechanism, and i would like to be able to write like this instead:

<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

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.

Hi!

The zip file:
http://forums.robotstudio.com/forum_posts.asp?TID=5024&KW=smart+component+zip&PID=15540#15540

We 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,
Jens