Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
936 Views, 5 Replies

iLogic rule will not run on another PC

We use an iLogic rule to set sheet numbers back to the master BOM. This has worked amazingly on my PC meanwhile on my co-workers PC the rule doesn't even run it doesn't show any kind of loading or anything. The other rules all work but then this one doesn't on his end. I'm at a complete loss.

 

Here is the rule.

 

'start of ilogic codeDim oDoc As DrawingDocument:
oDoc = ThisDoc.Document

Dim oSheets As Sheets
Dim oSheet As Sheet
Dim oViews As DrawingViews
Dim oView As DrawingView
Dim SheetNumber As String
i =1

oSheets = oDoc.Sheets


For Each oSheet In oSheets
oViews = oSheet.DrawingViews
For Each oView In oViews
'capture the current view label
ViewLabel = oView.Name
oModelName = _
oView.ReferencedDocumentDescriptor.ReferencedDocument.DisplayName
Try
SheetNumber =Mid(oSheet.Name, InStr(1, oSheet.Name, ":") + 1)
i=1+1
iProperties.Value(oModelName, "Custom", "SHEET") = SheetNumber

Catch
'do nothing if error
End Try
'End If
Next
Next
'end of ilogic code

 

It goes through on my PC and sets the sheets even on the drawing that he is working in but will not run on his. I was thinking it could be a windows verison problem but then why do the all of the other rules but this one work on his pc.

 

I am on Windows 7 he is on Windows 10.