Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hide items on part list with qty = 0

14 REPLIES 14
SOLVED
Reply
Message 1 of 15
Mario-Villada
1178 Views, 14 Replies

Hide items on part list with qty = 0

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.

MarioVillada_0-1626051332186.png

thanks in Advance.

14 REPLIES 14
Message 2 of 15
rhasell
in reply to: Mario-Villada

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

 

Reg
2025.1
Please Accept as a solution / Kudos
Message 3 of 15

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.

Message 4 of 15
IgorMir
in reply to: Mario-Villada

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.

MarioVillada_0-1626051332186.png

thanks in Advance.


 

Web: www.meqc.com.au
Message 5 of 15
Mario-Villada
in reply to: IgorMir

Where is that option?
Message 6 of 15

thanks friend!

If it is under the select member option I have it greyed out. any ideas why?
What is you assembly like?
Message 7 of 15
IgorMir
in reply to: Mario-Villada

It is under Select Members. Why is it greyed out at your end - I don't know.

Web: www.meqc.com.au
Message 8 of 15
rhasell
in reply to: IgorMir

The reason it is greyed out is because Select Members are for iParts and not "Model States"

 

Reg
2025.1
Please Accept as a solution / Kudos
Message 9 of 15
IgorMir
in reply to: rhasell

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"

 


 

Web: www.meqc.com.au
Message 10 of 15
rhasell
in reply to: IgorMir

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.

Reg
2025.1
Please Accept as a solution / Kudos
Message 11 of 15
Mario-Villada
in reply to: rhasell

Apologies, I meant 2022, Just a typo
Message 12 of 15

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!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 13 of 15
emanuel.c
in reply to: Mario-Villada

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.

Message 14 of 15
emanuel.c
in reply to: Mario-Villada

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.

Message 15 of 15
bmcwilliam
in reply to: emanuel.c

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.

Post to forums  

Technology Administrators


Autodesk Design & Make Report