Skip to content
New issue

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

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

Already on GitHub? # to your account

Autocad can't open dwg written by libredwg #1065

Open
lhbose opened this issue Dec 25, 2024 · 1 comment
Open

Autocad can't open dwg written by libredwg #1065

lhbose opened this issue Dec 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lhbose
Copy link

lhbose commented Dec 25, 2024

#The question is that i can't open dwg file writen by libredwg with any version of autocad,can anyone help me?
#Here is my mini-testing code:

#include "dwg.h"
#include "dwg_api.h"

int main(int argc,char* argv[])
{
int error;
const char* szFilePath = "/root/libredwg_test/test.dwg";

Dwg_Data* pDwgData = dwg_new_Document(R_2000,0,2);

error = dwg_write_file(szFilePath, pDwgData);

dwg_free(pDwgData);

return 0;

}

@lhbose lhbose changed the title Autocad can't open dwg writen by libredwg Autocad can't open dwg written by libredwg Dec 25, 2024
@michal-josef-spacek michal-josef-spacek added the bug Something isn't working label Dec 30, 2024
@michal-josef-spacek
Copy link
Contributor

I could probably test and fix this issue.
The issue is because some crucial default bad value in header/aux_header/?.

I think the same issue as #1058

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants