Message 1 of 4
iLogic Error - On 2nd PC

Not applicable
10-03-2017
04:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have this iLogic rule that picks up the File name a custom properties. And this works fine on my PC, but it is not working a different PC with the same template files and ilogic rule, any body know why?
Rule Below:
SyntaxEditor Code Snippet
Sub Main() 'Purpose: Push file name to sheet name'21-Sept-16 Dim oDoc As Document = ThisApplication.ActiveDocument Dim oSheet As Sheet Dim oDrawingView As DrawingView 'Iterate through sheets For Each oSheet In oDoc.Sheets 'Grab the first drawing view on the sheet oDrawingView = oSheet.DrawingViews(1) 'Grab the model of the first drawing view oModel = oDrawingView.ReferencedDocumentDescriptor.ReferencedDocument 'Grab the custom iproperty of the first drawing view model oModel1 = oDrawingView.ReferencedDocumentDescriptor.ReferencedDocument.DisplayName o_iProp = iProperties.Value(oModel1, "Custom", "RevisionUK") 'set sheet name to filename and custom iprop from model oSheet.Name = System.IO.Path.GetFileNameWithoutExtension(oModel.FullFileName)& " - " & o_iProp Next End Sub
Error Message