3 Replies Latest reply on Jan 13, 2016 8:42 AM by Deepak Gupta

    macro recorder not recording apperence action

    Rahul Galgali

      I am trying to record the macro for applying appearance action like applying different Texture,but the saved file is showing something like this.

       

       

       

       

      Dim swApp As Object
      Dim Part As Object
      Dim boolstatus As Boolean
      Dim longstatus As Long, longwarnings As Long
      
      Sub main()
      Set swApp = Application.SldWorks
      Set Part = swApp.ActiveDoc
      
      Dim myModelView As Object
      Set myModelView = Part.ActiveView
      myModelView.FrameState = swWindowState_e.swWindowMaximized
      Part.ClearSelection2 True
      Part.ClearSelection2 True
      Part.ClearSelection2 True
      
      End Sub