Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Model States - BOM 0 Quantity

jesscadd
Advocate

Model States - BOM 0 Quantity

jesscadd
Advocate
Advocate

For everyone wishing to use the model states feature but not have a 0 quantity show up in your BOM. I think I found a solution.

Once you have your model states created go into each of the suppressed components and unsuppress it.

Then go into BOM Structure in RMB and change to Reference.

Suppress the component again. 

It will not show in the BOM after that.

Reply
Accepted solutions (2)
3,839 Views
10 Replies
Replies (10)

johnsonshiue
Community Manager
Community Manager
Accepted solution

Hi! Yes, that is right. Also, the instance Reference property is stored within the Model State. So you can have one instance of a part be suppressed and referenced in Model State1, while it can be unsuppressed and normally counted in Model State2.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

jesscadd
Advocate
Advocate

Anyone know of an way to automate this process?

 

If I suppress an item, to have the BOM Structure set to reference automatically, then suppress.

And an option to reverse it. When unsuppressing an item, it changes the BOM Structure back to Default.

0 Likes

johnsonshiue
Community Manager
Community Manager

Hi Jess,

 

The only "automated" way to do that is to use iLogic IsActive()= False or True to control its suppression status. If you manually suppress or unsuppress it, the BOM Reference flag will need to be set manually accordingly.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

fatherof3
Advocate
Advocate

Doesn't this sorta suck? I just tried the Model State for the first time, expecting the Parts List to be pared down to show only the items that have not been suppressed, but that's not the case at all. It will be a major pain to go thru and change the BOM structure of all the suppressed items, then have to go back thru and do that again.

Is this really the case?

 

mcgyvr
Consultant
Consultant
Accepted solution

@fatherof3 wrote:

Doesn't this sorta suck? I just tried the Model State for the first time, expecting the Parts List to be pared down to show only the items that have not been suppressed, but that's not the case at all. It will be a major pain to go thru and change the BOM structure of all the suppressed items, then have to go back thru and do that again.

Is this really the case?

 


@fatherof3  You can use ilogic to just turn the visibility of rows with zero quantity off..

Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisDoc.Document
Dim oPartList As PartsList
oPartList = oDrawDoc.ActiveSheet.PartsLists.Item(1)
Dim i As Long
For i = 1 To oPartList.PartsListRows.Count
oCell1  = oPartList.PartsListRows.Item(i).Item("QTY")
If oCell1.Value = "0" Then
oPartList.PartsListRows.Item(i).Visible = False
End If
Next


-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269

tmathieson
Advocate
Advocate

Ok,

 

so let me get this straight... when i suppress a component in my assembly, i get a warning that "suppressed items do no show up in BOM"...

so i suppress the item i don't want in my BOM in my assembly, but when i run a Parts List on my Drawing, i get  the items showing up and quantities set to 0 ???  what is up with this?  and the answer we get is, as usual, write an iLogic rule!

 

why is Inventor telling me one thing, ( "suppressed item do not show in BOM"), but doing another (keeping suppressed items in BOM)?   i am really starting to think that 'model states' were pushed out the door not being fully tested. it seems i spend a lot of time trying to do simple things, (like not having a component show up in a BOM), trying to figure out what i did wrong, only to find out ...

and thanks for the code, BTW, i'm sure to be using it!!

johnsonshiue
Community Manager
Community Manager

Hi! The ability to filter out zero quality due to Model State suppression isn't available on Inventor 2022. We are aware of the request and we are working on a solution. If you are interested, you may sign up Inventor Feedback Community (https://autode.sk/InventorBeta).

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer

bionorica2015
Enthusiast
Enthusiast
0 Likes

jeremiah.july
Explorer
Explorer

I just found out that Inventor 2023 has a setting to remove all suppressed 0 quantity items.

It was on Autodesk's what's new in Inventor 2023 page.

If in a model:

     Assemble tab, Manage panel, Bill of Materials, click on the gear symbol in the upper right

If in an .idw:

     Right click on the generated parts list, Bill of Materials, click on the gear symbol in the upper right

Matthew_Policelli
Advocate
Advocate

IMO this setting should be added to Inventor 2022 as well. My organization just switched to 2022, and we probably won't update again for a few more years. In the mean time, model states  is largely useless unless we use an iLogic to do a manual visibility override? What's up with that?

0 Likes