Hi all,
I have an assembly with several model states, each states have some suppressed parts. when I placed a part list on a drawing with the assembly at some specific model state it shows ALL parts and the ones that are suppressed are shown with QTY = 0. Is there any way to hide the suppressed parts in the part list?
I am using Inventor 2020 an the new model states functionality.
thanks in Advance.
Solved! Go to Solution.
Solved by rhasell. Go to Solution.
Hi
I have cobbled together some some code from various rules that I have.
Give this a crack.
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
Thanks!, although I am trying to stay away from macros or iLogic as I am planning to share this models to other users, however this will be my solution if I cannot find an alternative.
It was very useful nevertheless.
Have you checked this setting? Please see the attached.
Cheers,
Igor.
@Mario-Villada wrote:
Hi all,
I have an assembly with several model states, each states have some suppressed parts. when I placed a part list on a drawing with the assembly at some specific model state it shows ALL parts and the ones that are suppressed are shown with QTY = 0. Is there any way to hide the suppressed parts in the part list?
I am using Inventor 2020 an the new model states functionality.
thanks in Advance.
It is under Select Members. Why is it greyed out at your end - I don't know.
The reason it is greyed out is because Select Members are for iParts and not "Model States"
Since the OP is on IV2020 - the "Model States" doesn't apply.
I can't really understand - how can items with zero quantities be presented in assembly. Unless it is iAssembly.
Cheers,
Igor.
@rhasell wrote:
The reason it is greyed out is because Select Members are for iParts and not "Model States"
That thought crossed my mind as well.
I figured that perhaps some 2022 enhancements have been filtered down via service packs? But not having 2020, I could not confirm this fact.
Hi! I am just confirming that the hiding zero QTY rows option in PartsList is not available on Model State assembly in 2022. It is available for iAssembly PartsList though.
We are aware of the request for Model State but it is not yet implemented. At the moment, the iLogic code is required or you will need to hide the row manually.
Many thanks!
Any idea why "Hide rows of zero quantity" is not working for my iAssembly?
I have it ticked but still, it doesn't hide the 0 quantities.
Never mind, I figured it out.
Apparently, the "Hide rows of zero quantity" only picks the quantity of the QTY variable and not ITEM QTY. I'm using the ITEM QTY. In this case I added the QTY column and set the width to 0in so as to be hidden and it works perfectly.
Thank you for your comment - I was having the same problem and couldn't work out why my zero quantity rows wouldn't hide.
Can't find what you're looking for? Ask the community or share your knowledge.