Skip to content

Invalid export of version- and lock_position tags in ATTDEF and ATTRIB #907

Closed

Description

@mozman

When exporting files from AutoCAD Plant by ezdxf the exported file is an invalid DXF file for Autodesk Trueview 2023.

The issue was caused by the version- and lock_position tags, see post below.

The test file was provided by issue #906.

This is the copy by ezdxf: 906_copy.zip

The error message of Trueview is not helpful, can someone load the file "906_copy.dxf" by the RECOVER command of AutoCAD and post the output messages of the recover process?

BricsCAD has no problem to open the file copy and the RECOVER command of BricsCAD does not report any errors.

Activity

  1. miiarantala commented on Jul 3, 2023

    @miiarantala

    I tried using the RECOVER command for the "906_copy.dxf" file with AutoCAD 2024.

    The recovery did not seem to complete, AutoCAD just shows "Press ENTER to continue" like this and then closes the drawing:

    image

    I attached the log file here:
    906_copy_1c37dcc88.log

  2. mozman commented on Jul 3, 2023

    @mozman
    OwnerAuthor

    Thank you.

  3. changed the title [-]Invalid export of AutoCAD Plant files[/-] [+]Invalid export of version- and lock_position tags in ATTDEF and ATTRIB[/+] on Jul 4, 2023
  4. mozman commented on Jul 4, 2023

    @mozman
    OwnerAuthor

    The version tag in ATTDEF and ATTRIB has the same group code (280) as the lock_position tag and the implementation required both to be present to work properly.

    The new implementation uses the last occurrence of group code 280 as lock position tag. The version tag is always 0, so if
    lock_position is missing and the version tag is present, lock_position is set to 0, which is the default value.

  5. added a commit that references this issue on Dec 7, 2023
    1d2f9f3
  6. added a commit that references this issue on Mar 27, 2024
    2e43fea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions