- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day everyone.
I wish to disable the "Merge Rows on Part Number Match" inside the Bill of materials when I have an Assembly open.
Now, I don't want to disable this manually every single time I open a new or existing assembly.
I'm creating something else in iLogic for exporting an assemblies BOM in a way that I want it to be exported and this is one of the settings I want disabled when the code is running.
I've checked out a bunch of articles but can't find anything on a snipped of code that just disables this setting.
Does it even exist?
(I'm no programmer, I just have a general jist of coding and that's it. I use snippets and try understanding what I'm doing)
My Inventor is 2023 currently. Will be updating to 2025 in a few months.
Here's the code I'm also working (WIP):
' To check if current open document (Active document) is an assembly. (.iam) - Returns a 'true' or 'false' value. IsAssembly = ThisApplication.ActiveDocument.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject ' If is .iam then make changes to the BOM Structure. If IsAssembly = True Then Dim AssyDoc As AssemblyDocument = ThisApplication.ActiveDocument Dim AssyBom As BOM = AssyDoc.ComponentDefinition.BOM AssyBom.StructuredViewEnabled = True AssyBom.StructuredViewFirstLevelOnly = False AssyBom.StructuredViewDelimiter = "." AssyBom.HideSuppressedComponentsInBOM = True AssyBom.RenumberItemsSequentially = True 'AssyBom.MergePartNumbers = False - (<- this is not working) Else MessageBox.Show("Active document is NOT an assembly.", "BOM Check") End If
Solved! Go to Solution.