RS 5.14 - SmartComponents
apox
✭✭
in RobotStudio
Hi
I created a SmartComponent (SC) and exported it to rsxml. An import of this rsxml is not possible, the following exception is thrown:
RobotStudio .NET exception: Failed to import C:UsersXXXXXXXXX.rsxml
============================================
Base exception: XmlSchemaValidationException
The 't' attribute is invalid - The value '1.0339, -8.9424E-17, 1.57' is invalid according to its datatype 'urn:abb-robotics-robotstudio-graphiccomponent:TVector3' - The Pattern constraint failed.
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity)
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String[] args, Exception innerException)
at System.Xml.Schema.XmlSchemaValidator.CheckAttributeValue(Object value, SchemaAttDef attdef)
at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String lName, String ns, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo)
at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String localName, String namespaceUri, XmlValueGetter attributeValue, XmlSchemaInfo schemaInfo)
at System.Xml.XsdValidatingReader.ValidateAttributes()
at System.Xml.XsdValidatingReader.ProcessElementEvent()
at System.Xml.XsdValidatingReader.ProcessReaderEvent()
at System.Xml.XsdValidatingReader.Read()
at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
at System.Xml.XPath.XPathDocument..ctor(XmlReader reader, XmlSpace space)
at System.Xml.XPath.XPathDocument..ctor(XmlReader reader)
at ABBInternal.SmartComponentServices.GraphicComponentCompiler.Compile(String xml, String refDir, String defaultName, String defaultResource)
at ABBInternal.SmartComponentServices.SmartComponentManager.ImportGC(String xml, String refDir, String defaultName, String defaultResource)
at ABB.Robotics.RobotStudio.Stations.GraphicComponent.ImportXml(String xmlData, String referenceDirectory, String defaultName, String defaultResource)
at ABB.Robotics.RobotStudio.Stations.GraphicComponent.ImportXml(String xmlFile)
at ABBInternal.StationLogic.ComponentServices.ImportComponents(IEnumerable`1 fileNames, Boolean importGeometry, IHasGraphicComponents parent, Nullable`1 position)
Inner exception: XmlSchemaException
The Pattern constraint failed.
I created a SmartComponent (SC) and exported it to rsxml. An import of this rsxml is not possible, the following exception is thrown:
RobotStudio .NET exception: Failed to import C:UsersXXXXXXXXX.rsxml
============================================
Base exception: XmlSchemaValidationException
The 't' attribute is invalid - The value '1.0339, -8.9424E-17, 1.57' is invalid according to its datatype 'urn:abb-robotics-robotstudio-graphiccomponent:TVector3' - The Pattern constraint failed.
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity)
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String[] args, Exception innerException)
at System.Xml.Schema.XmlSchemaValidator.CheckAttributeValue(Object value, SchemaAttDef attdef)
at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String lName, String ns, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo)
at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String localName, String namespaceUri, XmlValueGetter attributeValue, XmlSchemaInfo schemaInfo)
at System.Xml.XsdValidatingReader.ValidateAttributes()
at System.Xml.XsdValidatingReader.ProcessElementEvent()
at System.Xml.XsdValidatingReader.ProcessReaderEvent()
at System.Xml.XsdValidatingReader.Read()
at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
at System.Xml.XPath.XPathDocument..ctor(XmlReader reader, XmlSpace space)
at System.Xml.XPath.XPathDocument..ctor(XmlReader reader)
at ABBInternal.SmartComponentServices.GraphicComponentCompiler.Compile(String xml, String refDir, String defaultName, String defaultResource)
at ABBInternal.SmartComponentServices.SmartComponentManager.ImportGC(String xml, String refDir, String defaultName, String defaultResource)
at ABB.Robotics.RobotStudio.Stations.GraphicComponent.ImportXml(String xmlData, String referenceDirectory, String defaultName, String defaultResource)
at ABB.Robotics.RobotStudio.Stations.GraphicComponent.ImportXml(String xmlFile)
at ABBInternal.StationLogic.ComponentServices.ImportComponents(IEnumerable`1 fileNames, Boolean importGeometry, IHasGraphicComponents parent, Nullable`1 position)
Inner exception: XmlSchemaException
The Pattern constraint failed.
0
Comments
-
Please upload the SmartComponent and the exported .rsxml file so that we can take a look at it.What RS version did you use?Henrik Berlin
ABB0 -
I used RS 5.14.
Uploading is not easy, the SC contains confidential geometries and if i remove them, i get an exception when saving the SC as RSXML.
I attached a shrinked SC, but i am not able to export it as RSXML (to reproduce the wrong XML behavior.
webwiz/1114/SC_Greifmodul.zip
0 -
You can send the SC to me directly at henrik.berlin@se.abb.com. We will treat it as confidential. (You can try to Remove Geometry to take away the CAD data and keep only the triangle data.)Henrik Berlin
ABB0 -
Send you a PM.
0 -
The E-17 might cause a problem, does it work if you set the value to 0.0 manually in the xml file?
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings