system.mes.material.exportMaterialClassesAsCsvBytes
Description
Exports all Material Classes as raw bytes in CSV format (UTF-8 encoded). Streams material data from the database and formats it as CSV, including a header row.
Syntax
system.mes.material.exportMaterialClassesAsCsvBytes()
Parameters
No parameters.
Returns
A Byte array (Byte[]) containing the raw byte data of the CSV export.
Code Examples
Perspective
csvBytes = system.mes.material.exportMaterialClassesAsCsvBytes()
system.perspective.download("material_classes.csv", csvBytes)