Message 1 of 4
Rename frame generator part number to equal file name - iLogic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We use the frame generator file naming defaults to create custom file names and need to ensure that the file name is the same as the part number. Looking for an iLogic rule to run before save to update the part number. The following rule works, but looking to update only the frame generator parts.
There is a option to deselect "Use part number from content center" but this is set to ON by default and is always missed.
'set top level part number iProperties.Value("Project", "Part Number") = _ ThisDoc.FileName(False) 'False = without extension 'set each component part number Dim docFile As Document For Each docFile In ThisApplication.ActiveDocument.AllReferencedDocuments docName0 = docFile.FullFileName docName1 = System.IO.Path.GetFileName(docName0) docName2 = System.IO.Path.GetFileNameWithoutExtension(docName0) iProperties.Value(docName1, "Project", "Part Number") = docName2 Next