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 (str | Path) – Name of the file

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