mozman / ezdxf

Python interface to DXF
https://ezdxf.mozman.at
MIT License
937 stars 191 forks source link

entity.dxf.invisible = 1 ignored / not exported #1040

Closed subsurfaceiodev closed 9 months ago

subsurfaceiodev commented 9 months ago

Describe the bug Setting entity.dxf.invisible = 1 is ignored when exported to dxf

To Reproduce

import ezdxf

doc = ezdxf.new()
msp = doc.modelspace()

line = msp.add_lwpolyline(
    [(0, 0), (1, 1)]
)
line.dxf.invisible = 1

doc.saveas('mwe.dxf')

Expected behavior Line should be hidden when viewing on modelspace in CAD software, when browsing dxf file using ezdxf browse tool group code 60 equal to 1 is not being exported.

Screenshots image

mozman commented 9 months ago

Thank you!