İ can able to export drawing to dxg but i can not do it for part files.
I need select top plane and export DWG
Is there anyone who have this macro?
You can try the #TASK tool and use it's inbuilt "Export Flat Pattern" tool.
BTW if you mean you want to export the top view as DWG, then use the "Shop drawings" tool to create drawings of each part and later export them as DWG.
You can also use this macro (set the front view to top view) 2016 SOLIDWORKS API Help - Export Part to DWG Example (VBA)
Also make sure to set these values to 0 else the view would rotate
Retrieving data ...