PartsLists with Structured BOM

PartsLists with Structured BOM

MechMachineMan
Advisor Advisor
330 Views
1 Reply
Message 1 of 2

PartsLists with Structured BOM

MechMachineMan
Advisor
Advisor

HI. I'm running into issues.

 

What I want is to have my bill of materials to be setup in structured to have it's view properties show all levels (there being the dropdown boxes in the structured view).

 

I also want my PartsList that I add into drawings using the oPartsLists.Add to be inserted, but only show the first level (so that sub-assemblies show up as well - meaning Parts Only will not work).

 

I'm running into issues with this; it wants me to have all of the model BOM's be set to only first level in order for the code to run properly. Am i missing something?


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
331 Views
1 Reply
Reply (1)
Message 2 of 2

YuhanZhang
Autodesk
Autodesk

Even if you can only add a PartsList with Structured BOM of all levels, you can also set if the PartsList will display all the levels, which is controlled by the PartsListRow.Expanded(you can check the PartsListRow.Expandable first to know if a PartsListRowExpanded can be set). Hope this helps.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes