RobotStudio event

Error exporting geometry in Collada format

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.

Comments

  • 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?
    Henrik Berlin
    ABB
  • HM
    HM
    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.
  • 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.
  • Henrik Berlin
    Henrik Berlin ✭✭✭
    edited June 2013

    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.

     

    Henrik Berlin
    ABB