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: 

Multi level Parts List for Crimped Hoses

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
jonathan.ngEGWWL
208 Views, 5 Replies

Multi level Parts List for Crimped Hoses

Hi all,

 

I have been testing out modelling crimped hose assemblies using the hose and pipe run module but have been running into an issue with the layout of the Parts List when putting together drawings. 

 

In the sample assembly I have inserted the hose fittings in to their corresponding hose runs. I would like the Parts List to show the fittings the same way as the Bill of Material. This way someone who is building the hose knows which fittings are to be used on each hose. 

 

thumbnail_1.png

 

Currently the Parts List is being displayed like below. Is there a way to create a multi level parts list like above? I realize that if I set this to phantom I will get a list showing the total quantity of each fitting. Perhaps the solution is to create a drawing with views for hose run to show they are built instead and use the Parts List for purchasing. 

 

thumbnail_2.png

 

Thanks for any help and hope that made some sense.

5 REPLIES 5
Message 2 of 6

Just Right click and edit the parts list on your drawing and then expand them https://autode.sk/3JUOVf8 

 

I use ilogic to toggle between them, if you create a new rule and paste the below into it then running the rule will expand the parts list

 

Dim app As Inventor.Application = ThisApplication
Dim doc As DrawingDocument = app.ActiveDocument
Dim oSheet As Sheet = doc.ActiveSheet
Dim partslist As PartsList = oSheet.PartsLists(1)
Dim oRow As PartsListRow
Dim FirstRowCount As Integer = partslist.PartsListRows.Count
Dim LastRowCount As Integer = 0
Do Until FirstRowCount = LastRowCount
	FirstRowCount = partslist.PartsListRows.Count
	For Each oRow In partslist.PartsListRows
		Try
			oRow.Expanded = True
		Catch ex As Exception
			
		End Try
	Next
	LastRowCount = partslist.PartsListRows.Count
Loop

 

And to collapse it you can create a new rule that contains the below

 

Dim app As Inventor.Application = ThisApplication
Dim doc As DrawingDocument = app.ActiveDocument
Dim oSheet As Sheet = doc.ActiveSheet
Dim partslist As PartsList = oSheet.PartsLists(1)
Dim oRow As PartsListRow
Dim FirstRowCount As Integer = partslist.PartsListRows.Count
Dim LastRowCount As Integer = 0
Do Until FirstRowCount = LastRowCount
	FirstRowCount = partslist.PartsListRows.Count
	For Each oRow In partslist.PartsListRows
		Try
			oRow.Expanded = False
		Catch ex As Exception
			
		End Try
	Next
	LastRowCount = partslist.PartsListRows.Count
Loop

 

If this solves your issue please mark this posting with the "ACCEPT SOLUTION".
If you like something that was said or if it was helpful, Likes are appreciated. Thanks!
Message 3 of 6

For some reason these assemblies are not expandable?

 

3.PNG

Message 4 of 6

What if you right click on the parts list in the drawing and then select "Bill Of Materials..."

 

Then right click on the structured tab and is it set as per the below?

Jonathan_0-1660588531761.png

 

Jonathan_1-1660588591359.png

 

After this try again

 

If this solves your issue please mark this posting with the "ACCEPT SOLUTION".
If you like something that was said or if it was helpful, Likes are appreciated. Thanks!
Message 5 of 6
CGBenner
in reply to: jonathan.ngEGWWL

@jonathan.ngEGWWL 

 

Your parts list needs to be showing the same view as the BOM (Structured, Parts Only etc).  Once that is set up, if the BOM is showing "All Levels", the parts list can as well.  You may need to remove the parts list and place it again, and check as shown below:

CGBenner_0-1660589058442.png

 


Chris Benner
Industry Community Manager – Design & Manufacturing


If a response answers your question, please use  ACCEPT SOLUTION  to assist other users later.


Also be generous with Likes!  Thank you and enjoy!


Become an Autodesk Fusion Insider
Inventor/Beta Feedback Project
Message 6 of 6

Thanks this resolved the issue!

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report