Message 1 of 2

Not applicable
06-19-2017
08:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a illogic that runs in assembly and what I want to do is this:
if my filename = L19, OR S64 basically our naming convention starts with Letter then number I want that part to become Normal in BOM
but if the filename = 100 then I want that to become Purchase in BOM
I might sound simple for the experts out there but I'm just lost.
Thanks,
Joel
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 8677 StartFragment: 314 EndFragment: 8645 StartSelection: 314 EndSelection: 314SyntaxEditor Code Snippet
Dim docFile As Document For Each docFile In oDoc.AllReferencedDocuments ThisApplication.Documents.Open(docFile.FullFileName, False) 'Library Parts exemption'format model file name
Dim LP As String LP = Left(docFile.FullFileName,3) If LP < 100 Then docFile.ComponentDefinition.BOMStructure = 51970 'BOMStructureEnum.kPurchasedBOMStructure docFile.Update docFile.Close Else If LP > 100 Then docFile.ComponentDefinition.BOMStructure = 51973 'BOMStructureEnum.kNormalBOMStructure docFile.Update docFile.Close 'run rule in the drawing document auto = iLogicVb.Automation auto.RunExternalRule(docFile,"AutoFill") End If
Solved! Go to Solution.