Problem with ExportToDWG2

Hi Guys,

I have a problem with ExportToDWG2 method.

boolResult = swPart.ExportToDWG2(strExportPath, strFilePath, swExportAction, True, varAlignmnet, False, False, 0, varView)

I am writing a code in VBA for SolidWorks 2015 to export the selected faces or planes to dwg.

Everything is fine when I use "swExportAction=swExportToDWG_ExportSelectedFacesOrLoops" to export a face.

But when I change it to "swExportAction=swExportToDWG_ExportAnnotationViews" and add "varView = "*Front"", the method returns False.

Is there anybody has the same problem?

Thanks,

Ali.

SolidworksApi/macros