DXF

class compas.files.DXF(filepath, precision=None)[source]

Bases: object

Class for working with DXF files.

Parameters
  • filepath (path string | file-like object | URL string) – A path, a file-like object or a URL pointing to a file.

  • precision (str, optional) – A COMPAS precision specification.

Attributes
  • reader (DXFReader, read-only) – A DXF file reader.

  • parser (DXFParser, read-only) – A DXF data parser.

References

Methods

read

Read and parse the contents of the file.