RobotStudio event

RS 5.14 - SmartComponents

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.






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
    ABB
  • apox
    apox ✭✭
    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

  • 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
    ABB
  • apox
    apox ✭✭
    Send you a PM.

  • The E-17 might cause a problem, does it work if you set the value to 0.0 manually in the xml file?