Replies: 6 comments 3 replies
-
If I save the file from QCAD without making changes and read it in ACadSharp I get the same values as from QCAD. Seems like the tools are making some conversions. What I do not understand is if the original file was corrupted or if the tools just make some conversion that are not obvious to me? |
Beta Was this translation helpful? Give feedback.
-
Hi @mgnslndh Insert X: not sure why is the only one negative, seems odd that does not match with any other framework, did you try to open the file using Autocad and check these values? Rotation: I spoted an error in the One possible solution it would be to export the file in a DXF and check the values manually, if you have the handle is quite easy, you can find the DXF codes in this link, hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response @DomCR! I do not have access to AutoCAD at the moment so I can not try that. But all programs I have that can open a DWG show me the correct value for the X coordinate and the drawing looks OK on screen. If I save the drawing in QCAD as DWG or DXF the value will be interpreted correctly by ACadSharp. I made another test, this time using Teigha 24.8 and the results looks very much like ACadSharp except for the X coordinate which is positive as I would expect it to be. Can there be an issue regarding the sign bit when reading the X coordinate in ACadSharp? |
Beta Was this translation helpful? Give feedback.
-
@DomCR if you want to troubleshoot the issue I can email you the DWG file. |
Beta Was this translation helpful? Give feedback.
-
The block structure is the following; the current Now the position in of the block NV24MS in Autocad seems to be (26904.778108801958, 13290.592388701658) which it does not match with ACadSharp, one thing that I've noticed is that the Normal is flipped in the Z axis, I couldn't find a way to check the normal value for an insert in Autocad, but maybe it does some sort of transformation and corrects both values to simplify the reading. Can you check the value of the Normal in the other frameworks? |
Beta Was this translation helpful? Give feedback.
-
I found out that QAD have made some kind of handling of inverted extrusion vectors (normal in ACadSharp):
I've not found the commits or source code that fixes this issue but it is reported as fixed. QCAD will load the DWG and the X axis is mirrored in relation to what we can read with ACadSharp. I also found this discussion about how to handle entities with inverted extrusion vectors but i'm not sure it is helpful. They do talk about flipping the geometry:
|
Beta Was this translation helpful? Give feedback.
-
I have problems interpreting the values of a block insert from a DWG.
When I use ACadSharp, QCAD and DWGSee to inspect the properties of the insert I get different values.
Is there a bug or is there something I don't understand to interpret these values correctly?
The handle of the entity is 0x38730 and can be seen in both screenshots for ACadSharp and QCAD. It is not possible to display this handle in DWGSee.
I'm thinking maybe ACadSharp is reading the values correctly but the other tools are converting the values before using/showing them.
QAD
DWGSee
Beta Was this translation helpful? Give feedback.
All reactions