Skip to content
Discussion options

You must be logged in to vote

The invisible flag is the usual flag to set DXF entities invisible and seems not to work for ATTRIB entities.
The ATTRIB entity has a special visibility flag which is stored in the DXF flag attribute but can be set by the property is_invisible:

...

block_instance = dxf_file.modelspace().add_blockref("Test", (0, 0, 0))
attrib = block_instance.add_attrib("test_attr", "test")
attrib.is_invisible = True
dxf_file.saveas(r"C:\Users\manfred\Desktop\Outbox\attribs.dxf")

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Gorgious56
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Gorgious56
Comment options

You must be logged in to vote
2 replies
@mozman
Comment options

@Gorgious56
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants