RSSDK - Saving custom attributes in Project/GraphicComponent/ProjectObject
apox
✭✭
Hi,
is it possible to store custom attributes to ProjectObjects, e.g. custom classes or structs (which contain some .NET properties)? When adding any non primitive object to ProjectObject.Attributes i get an error on saving the project/object. Are there any requirements or is this not supported?
Thanks.
Post edited by John Wiberg on
Tagged:
0
Comments
-
Hi apox,
The generic answer is that Attributes are limited to [Int32, Int16, Double, Boolean, String, ProjectObject] as listed in the [AttributeCollection.Add] method in the manual.You mentioned Project and GraphicComponent in the title. On a project level you can add Documents as well. Then there is always SmartComponents with code behind.
If you need something more specific then I'd need more details, ie what you are trying to accomplish and why?
John
Developer Center0 -
John is correct - currently only "primitive" types are supported (as stated in the documentation). Also be aware that the next major RobotStudio release will enforce this a bit earlier - you will get an exception when inserting the invalid data, not when trying to save it.
/Anders
Anders Ekelund
Architect, RobotStudio
ABB0
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)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings