# RS 5.14 - SmartComponents

**URL:** <https://tech-community.robotics.abb.com/t/rs-5-14-smartcomponents/4156>\
**Category:** RobotStudio\
**Created:** [May 3, 2011, 11:06am UTC](https://tech-community.robotics.abb.com/t/rs-5-14-smartcomponents/4156 "2011-05-03T11:06:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![apox](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/apox/32/2392_2.png) [@apox](https://tech-community.robotics.abb.com/u/apox)\
**Post date:** [May 3, 2011, 11:06am UTC](https://tech-community.robotics.abb.com/t/rs-5-14-smartcomponents/4156/1 "2011-05-03T11:06:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Henrik\_Berlin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/henrik_berlin/32/1011_2.png) [@Henrik\_Berlin](https://tech-community.robotics.abb.com/u/Henrik_Berlin)\
**Post date:** [May 3, 2011, 12:22pm UTC](https://tech-community.robotics.abb.com/t/rs-5-14-smartcomponents/4156/2 "2011-05-03T12:22:56Z")

</div>

Please upload the SmartComponent and the exported .rsxml file so that we can take a look at it.

What RS version did you use?

---

<div class="post-metadata">

**Author:** ![apox](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/apox/32/2392_2.png) [@apox](https://tech-community.robotics.abb.com/u/apox)\
**Post date:** [May 3, 2011, 2:00pm UTC](https://tech-community.robotics.abb.com/t/rs-5-14-smartcomponents/4156/3 "2011-05-03T14:00:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Henrik\_Berlin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/henrik_berlin/32/1011_2.png) [@Henrik\_Berlin](https://tech-community.robotics.abb.com/u/Henrik_Berlin)\
**Post date:** [May 3, 2011, 3:09pm UTC](https://tech-community.robotics.abb.com/t/rs-5-14-smartcomponents/4156/4 "2011-05-03T15:09:10Z")

</div>

You can send the SC to me directly at [henrik.berlin@se.abb.com](mailto: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.)

---

<div class="post-metadata">

**Author:** ![apox](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/apox/32/2392_2.png) [@apox](https://tech-community.robotics.abb.com/u/apox)\
**Post date:** [May 3, 2011, 3:24pm UTC](https://tech-community.robotics.abb.com/t/rs-5-14-smartcomponents/4156/5 "2011-05-03T15:24:06Z")

</div>

Send you a PM.

---

<div class="post-metadata">

**Author:** ![Laro88](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/laro88/32/2653_2.png) [@Laro88](https://tech-community.robotics.abb.com/u/Laro88)\
**Post date:** [May 16, 2011, 10:07am UTC](https://tech-community.robotics.abb.com/t/rs-5-14-smartcomponents/4156/6 "2011-05-16T10:07:52Z")

</div>

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