2 Replies Latest reply on Jul 15, 2018 10:18 PM by Colin Ng

    Set swApp = Application.SldWorks Shows up as an error in debugger

    Colin Ng

      Hi All,

       

      I've just started on trying to learn macros today, by following this series which I found really good.

       

      SOLIDWORKS - Introduction to Macros: Coding [Pt. 2] - YouTube

       

      I got through and followed the first one fine, and was able to understand the gist of this one.

       

      However, when I tried to follow the tutorial, an error shows up saying "Type mismatch" and the debugger shows a problem with the line "Set swApp = Application.SldWorks" which was there by default.

       

      Could someone please tell me where I've gone wrong? I've attached my macro file for reference.