Convert dwg to obj with Java without 3rd party application

1.9k Views Asked by At

Is there a way to convert AutoCAD file DWG to OBJ by code with Java? Without using a third party application.

I need to import the DWG file, convert it to OBJ then display it in HTML5 Canvas.

1

There are 1 best solutions below

1
On

I doubt if it is possible to do this with java, especially without third party libraries. Both DWG and OBJ are binary formats and there is no built in libraries to interpret these formats.

There is only 1 java open source library that I am aware of that can parse a AutoCAD dxf file(Kabeja) , but this will mean converting a dwg to a dxf file.

There could be commercial libraries available which probably can do this.