ros / solidworks_urdf_exporter

SolidWorks to URDF Exporter
http://wiki.ros.org/sw_urdf_exporter
MIT License
370 stars 103 forks source link

Output mesh format #114

Open XDinEuro opened 3 years ago

XDinEuro commented 3 years ago

STL as a mesh format, only contains vertices information of a mesh, for better visualization, can we have .OBJ as output format, for keeping material. texture, etc information, for better visualization?

brawner commented 2 years ago

It doesn't look like SolidWorks supports .OBJ exports by default, but it could be done with an add-in? Probably won't happen until I build out v2 of this tool.

http://help.solidworks.com/2021/english/SolidWorks/scanto3d/t_exporing_files.htm

akjay commented 1 year ago

Does STEP file supportted by SolidWorks?I want to output a STEP file since it can keep color information for better visualization.

brawner commented 1 year ago

Step is recognized by Solidworks, but is not generally recognized by any tool that consumes URDFs.

akjay commented 1 year ago

Step is recognized by Solidworks, but is not generally recognized by any tool that consumes URDFs.

Actually I build a softeare myself which use URDF format to show a robot,and use STEP files for a better presentation that STL since stl not contains any color information,so I wonder this plugin can output STEP files or not,maybe I can fork one and make the chnage myself to achieve this goal,but not know how to use SolidWorks SDK API,is it easy to do?

akjay commented 1 year ago

Just tried that change the file's extension name to STEP will generate a STEP file with function "SaveAs", problem solved.Thank you for this excellent project. @brawner

ycpss91255 commented 1 year ago

Just tried that change the file's extension name to STEP will generate a STEP file with function "SaveAs", problem solved.Thank you for this excellent project. @brawner

Hi, I have the same problem, can you share your solution?

KenMat765 commented 9 months ago

After changing the output to 3dxml, I was able to reflect the colors.

Screenshot 2023-12-05 19:04:08