I am in a CATIA interactive session in a Product document. I add a new product to my product structure using CATIProduct::AddProduct. The visualization and specs tree are not updated automatically. What should I do?
You must send the visualization and specs tree navigation events yourself. Here is the code needed to do this:
//Update the 3D view
CATIModelEvents_var spEvents = RootProduct;
CATModify ModifyEvent(RootProduct);
spEvents -> Dispatch (ModifyEvent);