Load DXF Comments

ezdxf.comments.from_stream(stream: TextIO, codes: Set[int] = None) → Iterable[DXFTag]

Yields comment tags from text stream as DXFTag objects.

Parameters
  • stream – input text stream

  • codes – set of group codes to yield additional DXF tags e.g. {5, 0} to also yield handle and structure tags

ezdxf.comments.from_file(filename: str, codes: Set[int] = None) → Iterable[DXFTag]

Yields comment tags from file filename as DXFTag objects.

Parameters
  • filename – filename as string

  • codes – yields also additional tags with specified group codes e.g. {5, 0} to also yield handle and structure tags