-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
MText Rotation Not Being Read #81
Comments
In the Dwg Reader there is this line: //X-axis dir 3BD 11 Apparently the text x-axis vector. (Why not just a rotation?) ACAD maintains it as a unit vector.
mtext.AlignmentPoint = this._objectReader.Read3BitDouble(); So I'm guessing that the rotation is calculated using the For the Dxf we need to detect if the angle is provided or not, and then calculate the |
That is exactly the information that I need. Confirmed that the Since the angle is determined If this is the case, is there any time that In this case, do we add any "helper" methods (or property) like I'm willing to do this if I have a better understanding if/when the I deal with 2D DWGs regularly so I forgot this was probably done this way to calculate the rotation in 3 dimensions... |
It seems that the DWG works only with the For DXF it seems that you have both options, but I presume that both values must be coherent with each other, if not, Autocad just picks the last value read: For me the best way to approach this issue would be to to modify the First scenario: Second scenario: This way both values are always linked and they will "make sense" at any moment. This is the solution that I propose but I accept any ideas or alternatives. |
IMPORTANT NOTE: |
Excellent. Thank you for digging into this. I agree that modifying the properties set methods is the best way. These are pretty high priority for me so I will go ahead and make a PR for this modification less the documentation. |
PR created, feel free to push your branch to the PR's issue if you want, I'll give a second look before merging. |
In issue #80, I ran across the issue with the rotation not being read on MText entities on both the DWG and DXF readers. See the sample file below here.
I'll start to dig into this when I have some time.
The text was updated successfully, but these errors were encountered: