BTLxWriter.model_to_xml
- BTLxWriter.model_to_xml(model, nesting_result=None)[source]
Converts the model to an XML string.
- Parameters:
- model
TimberModel The model object.
- nesting_result
NestingResult, optional The nesting result object. If provided, raw parts will be created for each stock in the nesting result.
- model
- Returns:
- str
The XML string of the BTLx file.
See also