FreeCAD (original): LibreCAD: Solution:
I keep updating this thread during my investigation.
the commands after SEQEND seem to be handled wrong, if I remove 8 / 0 and only leave 0 after SEQEND the next POLYLINE will load. So the parameter "8" whatever that is seems to be the issue.
Code: Select all
1512 SEQEND
1513 8
1514 0
1515 0
Now the DXF importer ignores 8.
It reads the following 0 and expects a command section afterwards, however the following 0 (directly after 8) doesn't match and misaligned the import stream for the state machine so everything just dies off there.
A fix would be:
Code: Select all
else if(!strcmp(m_str, "0"))
{
//get_line();
while(!((*m_ifs).eof())) {
if (m_str[0]>='0' && m_str[0]<='9')
get_line();
else
break;
}
FreeCAD-git/src/Mod/Import/App/dxf.cpp
Pull Request:
https://github.com/FreeCAD/FreeCAD/pull/6924
there are so many other values not handled, it's better to try to re-align for now.
Text string indicating the entity type (fixed)
http://docs.autodesk.com/ACD/2011/ENU/f ... 9-7a62.htm
Fixed:
Code: Select all
===== Could not solve system ======
CDxfRead::ReadLayer() - no layer name
CDxfRead::DoRead() Failed to read layer
This function will be deprecated. Please use 'convert_draft_texts'.
----------------
Convert Draft texts
CDxfRead::ReadLayer() - no layer name
CDxfRead::DoRead() Failed to read layer
This function will be deprecated. Please use 'convert_draft_texts'.
----------------
Convert Draft texts
CDxfRead::ReadLayer() - no layer name
CDxfRead::DoRead() Failed to read layer
This function will be deprecated. Please use 'convert_draft_texts'.
----------------
Convert Draft texts
This function will be deprecated. Please use 'convert_draft_texts'.
----------------
Convert Draft texts
OS: macOS 10.15
Word size of FreeCAD: 64-bit
Version: 0.20.26556 (Git)
Build type: Release
Branch: adaptive_dicretize_bugfix
Hash: 4357816c94ff4938b778eb9f8aba8fe0e1c917dc
Python version: 3.9.0
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.0
Locale: English/Germany (en_DE)