Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

writing dxf files using the API? #992

Open
anscarlett opened this issue Jul 3, 2024 · 2 comments
Open

writing dxf files using the API? #992

anscarlett opened this issue Jul 3, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@anscarlett
Copy link

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
Copy link
Contributor

rurban commented Jul 3, 2024

Looks like it should be in the public header, yes

@rurban rurban self-assigned this Jul 3, 2024
@rurban rurban added the enhancement New feature or request label Jul 3, 2024
rurban added a commit that referenced this issue Oct 3, 2024
put into the public API:
dwg_write_dxf
dwg_write_dxfb
dwg_write_json
dwg_write_geojson

Fixes GH #992
@rurban
Copy link
Contributor

rurban commented Oct 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants