7 Replies Latest reply on Jun 1, 2016 11:39 AM by Mostafa Abbasi

    Is it possible to run run solidworks macro file via MATLAB mfile?

    Mostafa Abbasi

      Hi everyone, 

      I want to run solidworks macro file ( e.g. file.swp) invisible by MATLAB mfile, please help me.

      I've written a below mfile to open SolidWorks and run a macro file. But It doesn't work.


      swApp = actxserver('SldWorks.Application')

      set(swApp, 'Visible', true);