6 Replies Latest reply on Feb 22, 2013 9:51 PM by Artem Taturevych

    IsoViews on 2013?

    Gregory Sharp

      Hi, I'm running Solidworks 2013 and find that the IsoViews macro created by Lenny seems to output the views in incorrect positions. I've tried it on 2010 and it works fine. Would appreciate any suggestions. I've adapted the macro for a simple flip model orientation, here's the relevant part of the code:

       

      Private Sub cmdFlip_Click()

       

      Set swApp = _

      Application.SldWorks

      Set modeldoc2 = swApp.ActiveDoc

       

      pi = 4 * Atn(1)   ' The infamous pi value

       

      Set ModelView = modeldoc2.ActiveView

            ModelView.RotateAboutAxis (pi / 2), 0#, 0#, 0#, 1#, 0#, 0#

            ModelView.RotateAboutAxis (pi / 2), 0#, 0#, 0#, 1#, 0#, 0#

           

           

            modeldoc2.ViewZoomtofit

       

      End Sub