Comments (1)
Hi @tchrdav,
I've checked the dxf, the file doesn't follow the official dxf documentation and seems to have some invalid fields, this is what I've found:
- For DIMSTYLE the field 340 should be a handle reference pointing to a STYLE but instead is the name of the STYLE, "standard"
- 340 DIMTXSTY (handle of referenced STYLE)
- Similar case for DIMSTYLE 341 but in this case is empty which it may cause some errors when mapping the field
- 341 DIMLDRBLK (handle of referenced BLOCK)
- The block entity with handle 1C and name *Paper_Space has an invalid owner handle pointing to 1B which is not present in the file, the mapping can be solved using the name but this seems to be incorrect because the object doesn't exist at all.
After this investigation I've noticed that Autocad doesn't seem to be bother for this issues in the file and it can be opened without any problems so I'll open a branch to make the DxfReader
more flexible for this irregularities.
Actions:
- Make sure that the
Failsafe
in the reader works properly and is able to finish the reading notifying the errors found. - Improve the
DxfReader
to make sure that can handle references using names or handles.
from acadsharp.
Related Issues (20)
- Need handle error HOT 1
- DWG MText Not Appearing HOT 1
- DwgWriter fails due to summaryinfo being null HOT 2
- CadDictionary TryAdd always returns false HOT 1
- Encoding Issue HOT 3
- How to add entities to a new layer?
- HELP WANTED: How to convert cadDocument into a pdf file. HOT 2
- Creating Layouts and Viewports
- Dictionary name not stored when writing to DWG HOT 1
- Hatch Transparency Value Not Updating in DWG file HOT 2
- Some entities don't seem to be read in HOT 2
- How to get attribute Tag ? HOT 3
- The entity color is incorrect in the saved DWG file HOT 3
- Dynamic blocks support HOT 1
- GDAL reads a DXF file shows 0 features Which created by ACadSharp HOT 3
- DxfWriter failed to write entities. HOT 1
- Dictionary entries with key ACAD_ENHANCEDBLOCK not read anymore HOT 3
- Hatches not writing correctly HOT 3
- Dxf reading further than end of file or stream HOT 2
- .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acadsharp.