-
Notifications
You must be signed in to change notification settings - Fork 209
MTEXT entities not correct on ezdxf view #855
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
Comments
Is the issue here that layers are visible in ezdxf that are invisible by default in autocad? |
Hi @mozman! Thanks a lot for your feedback as well as for the commits with fixes :) By the way, this issue was also caused by transform method I presume. Recreated the files a little bit, so they may look a bit different than before, but nevertheless the case that I tried:
import ezdxf
from ezdxf.math import Matrix44
drawing = ezdxf.readile('bad_xref_1.dxf')
msp = drawing.modelspace()
xref = msp[0]
first_shift = Matrix44.translate(100.0, 100.0, 0.0)
rescale = Matrix44.scale(100.0)
second_shift = Matrix44.translate(-200.0, -200.0, 0.0)
transformation_matrix = Matrix44.chain(first_shift, rescale, second_shift)
inversed_transformation_matrix = transformation_matrix.copy()
inversed_transformation_matrix.inverse()
xref.transform(inversed_transformation_matrix)
xref.move_to_layout(drawing.layouts.get('Empty'))
xref.move_to_layout(msp)
drawing.saveas('bad_xref_1_transformed.dxf')
P.S.: not sure if there actually is something to fix in transform method, but thought that you may find it interesting :) Please let me know whether we may close this issue 😋 |
@mbway I always check it before creating issues here, but unfortunately it isn't the case: everything is visible here and in AutoCAD view you may see the problematic MTEXT entities as well, they are just too small, so that it is easy to not notice them. So the issue should normally be in the problem that @mozman described. In any case, thanks for your feedback! :) |
@IvanKachaikinCendas you have to update to the latest version on github, the file |
@mozman Correct, right now it looks correctly. Thanks once again for fixing it! :) |
Hi @mozman! First of all, thanks once again for your amazing package that makes my life much easier :)
However, I'm facing a little error with one plan. More specifically, while openning the following file with
ezdxf view
, the content does not look the same as in AutoCAD.To Reproduce
Information and data needed to reproduce the error:
ezdxf view bad_xref.dxf
ezdxf == 1.0.3
, Windows 11.bad_xref.zip
Expected behavior
In ideal case, I would expect that it looks just as in AutoCAD :)
Screenshots
ezdxf view
view:P.S.: not sure if you are going to fix this issue right now or if it is in general fixable as it may be a bit weird and actually some strange AutoCAD behaviour. In any case thanks for checking it out and for any feedback 🙏
The text was updated successfully, but these errors were encountered: