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

Write Face3D Can't Render in AutoCAD #574

Open
Lindingdou opened this issue Mar 6, 2025 · 4 comments
Open

Write Face3D Can't Render in AutoCAD #574

Lindingdou opened this issue Mar 6, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@Lindingdou
Copy link

Image
The above code can successfully write a dwg file, but write a three-dimensional surface, when using AutoCAD rendering will appear fatal errors

Image

Image

Is this a common problem, or is it caused by my improper operation.

Thank you. I'll be glad if you can help me. Thank you

@Lindingdou Lindingdou added the bug Something isn't working label Mar 6, 2025
@DomCR
Copy link
Owner

DomCR commented Mar 6, 2025

Hi @Lindingdou,

It doesn't seem to be related to the Face3D, your implementation looks good there is no issue there, the problem seems to be the switch to the 3D, I've tried to change the view for any file generated by ACadSharp and all of them seem to have the same error for any version after AC1018.

Try to save the file in AC1018 this should solve the issue for now, the needed fix I think is related to the materials, they where introduced after this version and they are not implemented for ACadSharp.

I'll open a branch to try to see if I can find out how to read them.

Thanks for the report!

@Lindingdou
Copy link
Author

Thank you very much for your very timely reply. I will try AC1018 again

@Lindingdou
Copy link
Author

Sorry to bother you again, I did solve my problem after switching to AC1018, but I seem to have found a new bug, AC1018 version can not display Chinese, all display contents are???.The switch to gb2312 did not work, and was resolved after switching to AC1032

@DomCR
Copy link
Owner

DomCR commented Mar 9, 2025

Here is a similar discussion about this issue:

For version older than AC1018 it seems that the special characters are encoded in a different way, here is what I've read from a file saved in AC1018:

Value: "\M+2A7DA\M+2AABA\M+2B575\M+2AB48"
Original: 我的短信

I need to investigate some more about this, but it seems that for special characters in older version the text is saved directly in hex.

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

When branches are created from issues, their pull requests are automatically linked.

2 participants