Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Whenever I use the following:
Inventor.AssemblyDocument ASMdoc = (Inventor.AssemblyDocument)mDoc;
AssemblyComponentDefinition oAsmCompDef = ASMdoc.ComponentDefinition;
oAsmCompDef.BOM.GetPartNumberMergeSettings2(out bool boolMergeEnabled, out string[] strMergeExcludeList, out bool boolMergeInstanceRows);
It always results in an error with GetPartNumberMergeSettings2 like:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
I'm not sure why this is. It's a normal Inventor assembly file each time. What am I doing wrong?
Solved! Go to Solution.