Skip to content
Discussion options

You must be logged in to vote
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:

ANSI_LINE_TYPES = [

Tutorial how to create linetypes.

Replies: 2 comments

Comment options

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

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #265 on December 11, 2020 05:20.