Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Hello @Curtis_Waguespack

The method that you show me its to add a view to the part to make it visible and then unfold it. I can't use this method because I have a lot of OnOpenDocument events and it pop-ups message boxes. Making the code to unfold all parts freezes until someone close the messagebox.

I found a way to "refresh" the ribbon when the code finish.

AssemblyDocument assemblyDocument = (AssemblyDocument)invApp.ActiveDocument;
invApp.CommandManager.ControlDefinitions["AppShowHomeBaseCmd"].Execute2(true); // ( HomeBaseView )
assemblyDocument.Activate();

When the code ends, it change to the HomeBaseView and back to the assembly.

Anyway, thanks @Curtis_Waguespack for the help!