You need to be logged in to view this content. Please login or become a member.


  1. federer

    Getting run time error 438 in line ” retVal = swPart.ExportToDWG2(strPath, swModel.GetPathName, swExportToDWG_ExportAnnotationViews, _
    True, varAlignment, False, False, Empty, varViews) “

    • You are probably getting that error because you are not using SolidWorks 2014, and IPartDoc::ExportToDWG2 was first added in 2014. So you need to use IPartDoc::ExportToDWG. This will not affect any of the arguments. So simply remove the “2”.

  2. agardnerii

    I was able to get the macros to run in Solidworks 2013, but it says, “Failed to save DXF.” What could be causing this?

Questions and Comments

You must be logged in to post a comment.