My goal is to print PDFs of a model at all of the differentdefined views. First, I am trying to simply change the display viewof my model (either part or assembly), but my lack of VB experienceisn't helping (I have a little C++ background). I think I can takecare of the printing part, but the following code gives me"Expected Function or Variable" error at ShowNamedView2 when i tryto compile. I've tried a number of different things, and thisseemed most likely to work. Any help is appreciated!
Dim swApp As Object
Dim model As SldWorks.ModelDoc2
Dim currentview As ModelView
Sub main()
Set swApp = Application.SldWorks
Set model = swApp.ActiveDoc
Void model.ShowNamedView2("*Right", -1)
End Sub
SolidworksApi macros
Dim swApp As Object
Dim model As SldWorks.ModelDoc2
Dim currentview As ModelView
Sub main()
Set swApp = Application.SldWorks
Set model = swApp.ActiveDoc
Void model.ShowNamedView2("*Right", -1)
End Sub
SolidworksApi macros
