Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Curtis_Waguespack
in reply to: mcgyvr

Just in case someone needs all views on all sheets to be compared to the first view on the first sheet, here is an example for that.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

Dim oDrawDoc As DrawingDocument 
Dim oSheet As Sheet
Dim oCurrentSheet As Sheet
Dim oSheets As Sheets
Dim oView As DrawingView
Dim oViews As DrawingViews
Dim oScale As Double
Dim oFView As String

'get the current drawing
oDrawDoc = ThisDoc.Document
'get the sheets collection
oSheets = oDrawDoc.Sheets
'get the active sheet
oCurrentSheet = oDrawDoc.ActiveSheet
'get first view / first sheet scale
oScale = oCurrentSheet.DrawingViews(1).Scale

'look at each sheet
For Each oSheet In oSheets
	oFlag = True 'set flag to default value 
	oSheet.Activate 'activate the sheet
	oViews = oSheet.DrawingViews 'get the views collection
	'look at each view
	For Each oView In oViews
		'compare view scale to 1st view scale
		If oView.Scale <> oScale Then
			oFlag = False 'trip the flag
		End If
	Next
	'alert user if flag is tripped (indicating differing scales)
	If oFlag = False Then	
		MessageBox.Show("Some drawing views on " & _
		oSheet.Name & " are not the same scale " & _
		"as the first view on the first sheet", "Check Scales")
	End If
Next

'set original sheet as active
oCurrentSheet.Activate