fougue / mayo

3D CAD viewer and converter based on Qt + OpenCascade
BSD 2-Clause "Simplified" License
1.36k stars 264 forks source link

Support reading of DWG files #163

Open calumk opened 1 year ago

calumk commented 1 year ago

Support DWG import

HuguesDelorme commented 1 year ago

DWG file format specification: https://www.opendesign.com/files/guestdownloads/OpenDesign_Specification_for_.dwg_files.pdf

calumk commented 7 months ago

This is still a huge need for me -> I have hundreds of .dwg files generated by pcon that i would love to get into other formats for rendering in game engines and online

HuguesDelorme commented 7 months ago

Yes supporting dwg in Mayo would be great. In the recent past I took some time to look at libredwg library. It's a very difficult library to use, there's not that much documentation and examples of projects based on it. In the meanwhile you can convert dwg files to dxf with dwg2dxf from libredwg. Is it relevant for you?

calumk commented 7 months ago

At the moment I can do this manually by opening and converting using a cad application and exporting, it's just that it's windows only, and a bit labour intensive

Libredwg can get me part of the way, but stringing together existing tooling is a bit of a pain, ideally a single cross platform app to do this would be ideal 👍