Blanking/Unblanking Minimally Loaded Components

Hello,

I have noticed an interesting bug(?) when working on showing/hiding minimally loaded components through NX Open. I can instruct NX Open to iterate through all component children and perform this method (in C#):

private void UnblankAllChildren(Component comp)
{
comp.Unblank();
foreach(Component child in comp.GetChildren())
{
UnblankAllChildren(child);
}
}

However, there is an issue when I investigate the component from NX's assembly navigator. While the checkmark is red (instead of gray when the component is hidden), none of the geometry is being shown in the graphics display window.

When I right click the component only "Hide" is shown as an option (as opposed to "Show" being an option with hidden components).

The only way I've found to actually have the component appear is to "Hide" it and then "Show" it again (from the assembly navigator). I can further confirm this bug as that Hide/Show option introduces a considerable delay/lag in forcing the component to appear.

All of the above does not occur on components that are partially loaded. My NX Open script works with a large amounts of components, so I'd prefer to work with minimally loading components, but this bug is consistently showing itself through multiple assemblies.

Is there a way that NX Open can force-show a component beyond Component.Unblank()? Or should I just avoid minimally loading components?

I'd suggest opening a support ticket with Siemens (or your reseller). I suspect that you have found a bug; blank/unblank should work with minimally loaded parts.

Hi,
Need one help i am creating a program on first level child components of Assy to check complete interference/overlapping currently struggling with Bounding box, can you please suggest some sample code or approach ? i have tried clearance analysis also but couldnt find anything that can report complete overlapping
Thanks

https://nxjournaling.com/comment/4524#comment-4524

The code in the link above will create boxes around all the component bodies in the current assembly. It doesn't do exactly what you are asking, but it might be a good starting point.