Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active April 1, 2022 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/5f5a2a11185672a58d724784f1b2524b to your computer and use it in GitHub Desktop.
Save aspose-com-gists/5f5a2a11185672a58d724784f1b2524b to your computer and use it in GitHub Desktop.
Convert DWG to OBJ in Java
// Load the input DWG file
Image image = Image.load("sample.dwg");
// Cast the Image class object to CadImage type
CadImage cad = (CadImage)image;
// Initialize ObjOptions class object
ObjOptions options = new ObjOptions();
// Save output OBJ Object file
cad.save("sample.obj", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment