Message 1 of 3
iLogic to 'Enable Row Merge on Part Number Match' in .idw Drawing

Not applicable
10-15-2020
02:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have my ilogic code that can extract the Part List out to a .txt file in Drawing Mode not in Assembly,
before doing that, I need to merge all the same parts, and I have to manually do Enable Row Merge every single time...
I tried imply this code into my ilogic, but it doesn't work, can someone please help me?
Dim oDoc As Document
oDoc = ThisDoc.Document
For each oSubDoc in oDoc.AllReferencedDocuments
Try Dim oCD As AssemblyComponentDefinition
oCD = oDoc.ComponentDefinition oBOM = oCD.BOM
oBOM.SetPartNumberMergeSettings(True)
Catch
End Try
Next