How to setup standard linetypes for a loaded DXF file? #265
Answered
by
mozman
LavenderGu
asked this question in
Q&A
-
Hello, Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
mozman
Nov 20, 2020
Replies: 2 comments
-
import ezdxf
from ezdxf.tools.standards import setup_linetypes
doc = ezdxf.readfile(...)
# create standard linetypes:
setup_linetypes(doc)
# create your own linetype:
doc.linetypes.new('YOUR_LINETYPE', dxfattribs={pattern: [...]}) See standard pattern definitions are here: ezdxf/src/ezdxf/tools/standards.py Line 264 in c2a9c16 Tutorial how to create linetypes. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mozman
-
Thanks for your help! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See standard pattern definitions are here:
ezdxf/src/ezdxf/tools/standards.py
Line 264 in c2a9c16
Tutorial how to create linetypes.