weldx.SpatialData.to_file#

SpatialData.to_file(file_name, units='mm')#

Write spatial data into a file.

The extension prescribes the output format.

Parameters
  • file_name (Union[str, Path]) – Name of the file

  • units (str) – Conversion target for length unit before export.