LibreDWG / libredwg

Official mirror of libredwg. With CI hooks and nightly releases. PR's ok
https://savannah.gnu.org/projects/libredwg/
GNU General Public License v3.0
947 stars 230 forks source link

writing dxf files using the API? #992

Open anscarlett opened 3 months ago

anscarlett commented 3 months ago

Hi all,

I just built rust bindings using bindgen from the latest windows binary release, but the header files dwg.h dwg_api.h don't include the dwg_write_dxf() function, which appears to be found in src/out_dxf.h.

I ran libredwg-0.dll through dumpbin and it shows the function as an export.

Can anyone help point me in the right direction?

rurban commented 3 months ago

Looks like it should be in the public header, yes

rurban commented 2 days ago

The problem is that I don't want to expose the internal Bit_Chain struct, and it's needed. There need to be some other public API to which buffer to write to.

It's only exported for the tests.