1 # SPDX-License-Identifier: MIT
2 # Copyright 2012 Manfred Moitzi
4 # Purpose: handle default chunk
5 # Created: 21.07.2012, taken from my ezdxf project
6 from __future__
import unicode_literals
7 __author__
= "mozman <mozman@gmx.at>"
9 from .tags
import Tags
, DXFTag
12 class DefaultChunk(object):
13 def __init__(self
, tags
):
14 assert isinstance(tags
, Tags
)
18 def from_tags(tags
, drawing
):
19 return DefaultChunk(tags
)
23 return self
.tags
[1].value
.lower()
26 def iterchunks(tagreader
, stoptag
='EOF', endofchunk
='ENDSEC'):
29 if tag
== DXFTag(0, stoptag
):
34 end_tag
= DXFTag(0, endofchunk
)