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
Solved! Go to Solution.
Solved by Des_Seals. Go to Solution.
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.
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
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
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.