# Error exporting geometry in Collada format

**URL:** <https://tech-community.robotics.abb.com/t/error-exporting-geometry-in-collada-format/5532>\
**Category:** RobotStudio\
**Created:** [May 29, 2013, 3:38pm UTC](https://tech-community.robotics.abb.com/t/error-exporting-geometry-in-collada-format/5532 "2013-05-29T15:38:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HM](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@HM](https://tech-community.robotics.abb.com/u/HM)\
**Post date:** [May 29, 2013, 3:38pm UTC](https://tech-community.robotics.abb.com/t/error-exporting-geometry-in-collada-format/5532/1 "2013-05-29T15:38:13Z")

</div>

Hi,

I get an error when I try to export a geometry in collada format in version 5.15.00.01. Same problem occurs when I try to export a Part in the robotStudio sdk with SaveAs, an Invalid file format exception is thrown. The other formats work well.

Is there any other way to export in this format? Is this error a bug of the export function?  
Thanks in advance.

---

<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 29, 2013, 9:04pm UTC](https://tech-community.robotics.abb.com/t/error-exporting-geometry-in-collada-format/5532/2 "2013-05-29T21:04:43Z")

</div>

This is not a known problem. Do you get the problem for any part you try to export to Collada, or for one particular only?

---

<div class="post-metadata">

**Author:** ![HM](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@HM](https://tech-community.robotics.abb.com/u/HM)\
**Post date:** [May 30, 2013, 8:29am UTC](https://tech-community.robotics.abb.com/t/error-exporting-geometry-in-collada-format/5532/3 "2013-05-30T08:29:35Z")

</div>

Ok, the export function in the graphic environment fails with collada when the geometry is not visible, for any part I try to export. I don´t know if this is the desired behaviour.

With the robotStudio SDK the following code fails, throwing the Invalid file format exception:

Part part = Part.Load(filePath);  
part.Name = “Part”;  
part.Visible = true;

station.GraphicComponents.Add(part);

part.SaveAs(“Part.dae”);

But if you change the extension in the SaveAs instruction:

part.SaveAs(“Part.sat”);

it works well.

---

<div class="post-metadata">

**Author:** ![HM](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@HM](https://tech-community.robotics.abb.com/u/HM)\
**Post date:** [June 3, 2013, 10:25am UTC](https://tech-community.robotics.abb.com/t/error-exporting-geometry-in-collada-format/5532/4 "2013-06-03T10:25:30Z")

</div>

More errors with the RobotStudio API: RobotStudio crashes when you try to export in .obj. The .obj and .mtl files are created correctly but after that the program ends unexpectedly.

---

<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:** [June 3, 2013, 3:31pm UTC](https://tech-community.robotics.abb.com/t/error-exporting-geometry-in-collada-format/5532/5 "2013-06-03T15:31:02Z")

</div>

I was able to reproduce the COLLADA problem when I made the part invisible. The export function is designed to exclude all invisible objects. Apparentely, the case when nothing is visible is not handled very well. We will take a look at that.
