AnsweredAssumed Answered

macro recorder not recording apperence action

Question asked by Rahul Galgali on Jan 13, 2016
Latest reply on Jan 13, 2016 by Deepak Gupta

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