Suppressing Folders using iLogic not updating BOM structure

Suppressing Folders using iLogic not updating BOM structure

andrew.tom.reynolds
Advocate Advocate
1,311 Views
9 Replies
Message 1 of 10

Suppressing Folders using iLogic not updating BOM structure

andrew.tom.reynolds
Advocate
Advocate

I've got a configurable assembly where i have the components (some parts, content center items and sub-assemblies) related to each option in a browser folder so that i can simply suppress or unsuppress the required folders based on the options required. However, the Parts Only BOM list still contains almost all of the parts that are suppressed. Normally with iLogic when you suppress a component, the BOM structure is changed to "Reference" and it disappears from the Parts Only list. This doesn't seem to be working in this case. The components are definitely suppressed in the model as expected, just not in the BOM?!

The code i'm using to suppress the folders is:

oFolder = oPane.TopNode.BrowserFolders.Item("ROTARY ACTUATION")
oFolderNodes = oFolder.BrowserNode.BrowserNodes

For Each oNode As BrowserNode In oFolderNodes
	oComp = oNode.NativeObject
	oComp.Suppress
Next

Any clues?

0 Likes
Accepted solutions (1)
1,312 Views
9 Replies
Replies (9)
Message 2 of 10

chandra.shekar.g
Autodesk Support
Autodesk Support

@andrew.tom.reynolds,

 

Have you tested the same behavior with Inventor UI or manual task? I mean, will BOM structure updated on suppressing folder(Including components) through Inventor UI?

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 10

andrew.tom.reynolds
Advocate
Advocate

Same issue, if you just right click on the browser folder and toggle suppress, it will physically work for the components in the assembly, but does not change the BOM structure.

0 Likes
Message 4 of 10

JaneFan
Autodesk
Autodesk

Hey @andrew.tom.reynolds , 

 

It is the  behavior now that suppression status doesn't affect BOM. 




Jane Fan
Inventor/Fusion QA Engineer
Message 5 of 10

chandra.shekar.g
Autodesk Support
Autodesk Support

@andrew.tom.reynolds,

 

If it's not possible through Inventor UI, then it will not supported by Inventor API.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 6 of 10

andrew.tom.reynolds
Advocate
Advocate

@JaneFan This is not true, I have other models where I suppress components using iLogic (not using folders) and the BOM status changes to reference and therefore the items do not appear in the parts only list for that configuration.

This is both using Inventor 2019. The model without browser folders works fine, the model with browser folders does not work.

0 Likes
Message 7 of 10

andrew.tom.reynolds
Advocate
Advocate

As a test, I moved 2 of the affected components out of the browser folder and created a simple rule to just suppress these 2 components. Once I ran this and saved then opened the BOM, the 2 parts had their structure changed to "reference" and they were missing from the parts only list (as expected). Then I created another simple rule to just unsuppress these 2 components again. I ran this and saved and then opened the BOM and they are once again set to "normal" structure and appear as expected in the parts only list.

I then created a new browser folder called "TEST" and moved the 2 components into it. I then created a very simple rule to suppress these parts again in the folder and this time, the parts are suppressed in the model but remain as "normal" structure in the BOM and still appear in the parts only list.

oPane = ThisDoc.Document.BrowserPanes.Item("Model")
oFolder = oPane.TopNode.BrowserFolders.Item("TEST")
oFolderNodes = oFolder.BrowserNode.BrowserNodes

For Each oNode As BrowserNode In oFolderNodes
	oComp = oNode.NativeObject
	oComp.Suppress
Next

If this is true what @chandra.shekar.g says that because it does not work manually then it won't work using iLogic, is there another method to suppress the folder or all of the parts within a folder so that it will work?

I have a lot of components to suppress and unsuppress due to the number of possible configurations and so it is much easier to use folders. However, I need the parts list to accurately reflect the configuration also!

0 Likes
Message 8 of 10

Anonymous
Not applicable

I mostly used to delete and add components (in a loop if it is a lot of the same files or for endless assembly's). This is the easiest way for me to read what components are active in the assembly (model browser does only contain parts that are used in the configurator) and you can use the direct BOM structure without failure.

0 Likes
Message 9 of 10

JaneFan
Autodesk
Autodesk
Accepted solution

Hi @andrew.tom.reynolds , 

 

I know it is a little confusing, but there is indeed some difference between suppressing via browser node/manually and suppressing via iLogic rule:

Component.IsActive("xxx") = False

When suppressing via iLogic rule, it does the thing to change bom structure from normal to reference besides suppressing the component, while suppressing manually from browser node doesn't do that. 

 

In such case, if you have pretty a lot components to suppress and want to change their bom structure at the same time, please try to change the code a little bit using iLogic way: 

oPane = ThisDoc.Document.BrowserPanes.Item("Model")
oFolder = oPane.TopNode.BrowserFolders.Item("test")
oFolderNodes = oFolder.BrowserNode.BrowserNodes

For Each oNode As BrowserNode In oFolderNodes
	oComp = oNode.NativeObject
	Component.IsActive(oComp.name) = False
'	oComp.Suppress
Next

  




Jane Fan
Inventor/Fusion QA Engineer
0 Likes
Message 10 of 10

andrew.tom.reynolds
Advocate
Advocate

Thanks @JaneFan - this is just what I was looking for.

0 Likes