Giter Club home page Giter Club logo

Comments (1)

DomCR avatar DomCR commented on August 26, 2024

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)

DIMSTYLE documentation

  • 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.