#7078 closed defect (fixed)
DXF: OGR-created files containing a "Defpoints" layer can't be opened in AutoCAD
Reported by: | Alan Thomas | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | svn-trunk |
Severity: | minor | Keywords: | dxf |
Cc: |
Description
Upon running the following command, where in.dxf
contains objects on the "Defpoints" layer:
ogr2ogr -f "DXF" -overwrite out.dxf in.dxf
out.dxf
can't be opened in AutoCAD. The following error is issued by AutoCAD:
Error in LAYER Table Invalid AcDbLayerTableRecord plot flag for DEFPOINTS layer on line 1252. Invalid or incomplete DXF input -- drawing discarded.
This can be resolved by adding
290 0
in the LAYER table entry for the "Defpoints" layer.
"Defpoints" is a special AutoCAD layer that is never supposed to be displayed, so AutoCAD seems to insist that a layer with this name shouldn't be plotted.
Probably a minor issue as it may well only happen when round-tripping DXF files, which is an unusual use case.
Attachments (1)
Change History (3)
by , 7 years ago
Attachment: | defpoints-layer.dxf added |
---|
comment:1 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 7 years ago
I've not Autocad to test, so I'd appreciate if you could confirm that it fixes the issue
In 40365: