Batch Export DXF by Tree or Branch, Multi Layer

hey guys!

i want to export different branches or trees of geometry to different DXF files for CNC milling. (Student project)

the geometry is should be exported to different layers.

i tried tttoolbox, but multi layer is not supported.

Do you have any idea how to solve this?

The deadline is comming closer...

Thank you for any help or hints!!!

Bea