FlatPattern export problems

Hi all,

Have a VBA macro, which exports active pat flatpattern (ExportToDWG2 method). The problem is if flatpattern is rotated to Z axis, then macro exports roatated flatpattern. If i do manually export to DXF/DWG - all good. How to do with that?