Are you looking for total views OR view numbers like drawing view 1, 2, etc.
Hi, Deepak Gupta,I want to look for total views. Thank you very much.
SW treats sheet as a view also. So you can subtract the number of sheets from the total views count to get a view count.
Here are the macro codes:
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swDraw As SldWorks.DrawingDoc
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set swDraw = swModel
MsgBox "Number of views: " & swDraw.GetViewCount - swDraw.GetSheetCount
Thank you,I know.