Folder Suppressed: Component Occurrence inside the folder is not showing suppressed using Inventor API?

Folder Suppressed: Component Occurrence inside the folder is not showing suppressed using Inventor API?

amitabhVA4SD
Advocate Advocate
389 Views
2 Replies
Message 1 of 3

Folder Suppressed: Component Occurrence inside the folder is not showing suppressed using Inventor API?

amitabhVA4SD
Advocate
Advocate

Hello,

 

I am using Inventor 2020.3.4 and checking in an assembly if any component occurrence is suppressed. In my assembly, some parts are within a folder and the folder is suppressed. In such cases, when I query the Suppressed property of the Component Occurrence, it is returning false?

Are there some additional checks that I need to perform to resolve this issue?

For Suppressed parts that are outside the folder, the API is working well.

 

Can someone share a code snippet that will check the containing folder of the occurrence to see if it is suppressed so we can look at this validation from a different angle?

 

amitabhVA4SD_0-1635345952104.png

amitabhVA4SD_1-1635345966904.png

 

Inventor API Team and Experts please help

@MjDeck @JelteDeJong @johnsonshiue @michael.navara 

 

Thanks,

Amitabh Mukherjee

 

0 Likes
390 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

So, it looks like those two sub-assemblies are themselves inside of a sub-assembly.  Are you using a LevelOfDetailRepresentation within that main sub-assembly to control the suppression states of those two sub-assemblies within?  Are you also using a LevelOfDetailRepresentation in the main assembly to ensure that the main sub-assembly's LevelOfDetailRepresentation is set the way you want it?  It can get pretty complicated. 😉  How are you currently checking the suppression status of those two components?

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

amitabhVA4SD
Advocate
Advocate

@WCrihfield- We have a LOD representation called CLEAN (at the root document level) that we are switching to using code before reading the assembly tree. The LOD inside the sub-assembly is not controlling the suppression, it all depends on the end-user designing the assembly (he can perform the impression in different ways) and I know it can run into different permutations to achieve the same end result. I am going to each occurrence and then sub-occurrence, API for Sub-Occurrence will list all the parts whether there are inside the folder or not and then use the Suppressed API

https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-75CCD20D-728B-4B77-B950-263E297A68EC

 

Let me know if you need more details to help me out on this issue. Thanks!

0 Likes