BTLxWriter.model_to_xml

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

Converts the model to an XML string.

Parameters:
modelTimberModel

The model object.

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.