Hi Community,
I have written a VBA script in V5 to navigate down the product structure to identify a specific product instance condition and report it to the user and offer to correct it for them. To highlight the instance in the structure, the macro selects it and then attempts to centre graph on the current selection using CATIA.StartCommand "center graph".
Sometimes this works fine and sometimes it doesn't centre graph at all. I notice that when working interactively, there are two identically named commands in the Commands List and one works fine and the other doesn't and I suspect that the VBA is calling either of these commands randomly when executing. I wonder if these two identically named commands are introduced by different workbenches within our licensed configuration.
Is anyone aware how to call one specific version of the command? Or alternatively a better way to centre graph on the selected product instance within the VBA?
