VBA workaround for Coreldraw layer disable bug (DXF)

Based on feedback from quite a few other Coreldraw users I believe I've confirmed the existence of a DXF export bug in v2017 (as well as X7 and X8).

This bug only seems to happen with DXF export and disabling layers. The object on the layer which has export disabled, still exports.

Is it possible to get around this problem with a VBA macro ?