BTLxWriter.write

BTLxWriter.write(model, file_path, nesting_result=None)[source]

Writes the BTLx file to the given file path.

Parameters:
modelTimberModel

The model object.

file_pathstr

The file path to write the BTLx file to.

nesting_resultNestingResult, optional

The nesting result object. If provided, raw parts will be created for each stock in the nesting result.

Returns:
str

The XML string of the BTLx file.