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: 

Suppress parts when all features are suppressed

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Des_Seals
325 Views, 4 Replies

Suppress parts when all features are suppressed

I have parts that I have set to suppress all features under certain conditions to turn off the parts in my model. I also set my bom to hide suppressed components. The only problem is when all features are suppressed and the part isnt shown, the part itself still isnt suppressed and its still showing in the bom. Other than manually suppressing the part or toggling visibilty in the bom is there a way to not show the part in the bom when all features are suppressed?

 

Inventor 2023

4 REPLIES 4
Message 2 of 5
jtylerbc
in reply to: Des_Seals

I don't have any code that does this, but could you have an iLogic rule run through all the parts in the assembly and check the value of the Volume physical property?

 

If there are no features, then the Volume should be zero.  So you could check for Volume = 0 and suppress the part.

Message 3 of 5
Des_Seals
in reply to: jtylerbc

The volume is 0 when the features are suppressed but I havent used ilogic before. I've kind of gotten the the basics of it but I havent been able to figure how to get it to check the assembly for parts with volume = 0 and suppress them

Message 4 of 5
Des_Seals
in reply to: Des_Seals

I was able to get it to work a different way

 

If parameter = 1 Then
	Component.IsActive("Part1:1") = True
Else If parameter = 2 Then
	Component.IsActive("Part1:1") = False
End If

 

Message 5 of 5
jtylerbc
in reply to: Des_Seals

That is probably an easier way to do it, especially if you already have parameters like that to control the assembly in other ways.  

 

To do it with the volume, you would probably need a loop to cycle through each part, check its weight, then suppress it if applicable.  You would also need something to trigger it to run.  This is feasible, but might not be the best choice for your first look into iLogic.  

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

Post to forums  

Autodesk Design & Make Report