Here is a rule that I use to get the Sheet Number as Part Number.
It uses the Part Number from the model using the first placed view on the idw on each individual sheet. And all our Part Numbers are a Custom iProperty (PART_ID).
'ilogic rule renames each drawing sheet to first part/model/ipn/etc view inserted into each drawing sheet
'Purpose: Push file name to sheet name
'21-Sept-16
Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument
Dim oSheets As Sheets
oSheets = oDoc.Sheets
Dim oSheet As Sheet
Dim oDrawingView As DrawingView
'Iterate through sheets
For Each oSheet In oSheets
Try
'Grab the first drawing view on the sheet
oDrawingView = oSheet.DrawingViews(1)
'Grab the model of the first drawing view
oModel = oDrawingView.ReferencedDocumentDescriptor.ReferencedDocument
'Assign the sheet name based off of the file name, with the path and extension removed
oSheet.Name = System.IO.Path.GetFileNameWithoutExtension(oModel.FullFileName)
Catch
'There is no drawing views
End Try
Next
InventorVb.DocumentUpdate()
---------------------------------------------------
It's not easy maintaining this level of insanity !!!!!