07-05-2018
11:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-05-2018
11:06 PM
Part Number Row Merge
Hi Guys
I have created the below rule (slowly getting this coding) and it works by added a part number to the "Merge Exclude List". What I cant work out now is how to add several numbers to this list. I can only have it enter 1 at a time. I need to add approx 200 via an array but I cant got it to work.
once I have this I would like to have the list read from an excel spreadsheet.
Cheers
Donald
SyntaxEditor Code Snippet
Dim oDoc As Document oDoc = ThisDoc.Document Dim oCD As AssemblyComponentDefinition Dim oList As String oList = "11111" oCD = oDoc.ComponentDefinition oBOM = oCD.BOM oBOM.SetPartNumberMergeSettings(True,{oList})
07-09-2018
03:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-09-2018
03:42 AM
Hoping that below iLogic code may help to set merge for more that one value.
Dim oDoc As Document
oDoc = ThisDoc.Document
Dim oCD As AssemblyComponentDefinition
Dim array(3) As String
array(0) = "11111"
array(1) = "22222"
array(2) = "33333"
oCD = oDoc.ComponentDefinition
oBOM = oCD.BOM
oBOM.SetPartNumberMergeSettings(True, array)
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network

07-09-2018
03:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-09-2018
03:21 PM
Hi Chandra
when I tried your code I get the attached error.
Also is there a way to pull these part numbers from Excel?
Donald
07-10-2018
09:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-10-2018
09:27 PM
Same suggestion is given in the below forum discussion.
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network
