Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PartsLists with Structured BOM

1 REPLY 1
Reply
Message 1 of 2
MechMachineMan
232 Views, 1 Reply

PartsLists with Structured BOM

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
1 REPLY 1
Message 2 of 2
YuhanZhang
in reply to: MechMachineMan

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report