How to run pressure vessel studies

I want to be able to run a pressure vessel study through the api. However, unfortunately ICWStudy.RunAnalysis() fails if the studies it depends on are out of date. I would expect that it simply runs the required studies but unfortunately that is not the case. I was thinking i could find and run the dependent studies but i cant find anywhere in the API that gives me information on the dependent studies. What i need is just the information i get when right clicking "Setup" and selecting "Define/Edit"

Does anyone know where i can get this information, or alternatively have another reliable way of running a pressure vessel study through the API?

SolidworksApi/macros