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.
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:
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.
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.