Why API exports are different from manual exports(.dwg)

API(model.export(“filename.dwg”))

Add multiple images


I expect result dwg2d

This is a manually exported 2D drawing

Your screenshot looks like the API export is exporting the 3D model.

At the moment, only 3D exporters are exposed to the Ruby API.