Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
I'm trying to create a choice object on an interface that has the different analyses in the simulate model listed. The kicker is that the aux app I'm creating can only be used in FEM mode. I've successfully found all the PRO_SIMULATION_ANALYSIS items using the ProSolidMechitemVisit function but it gives ALL of the analyses, whether it is an FEM mode analysis or a normal Simulate analysis. Only analyses created in FEM mode get exported into the Nastran or Ansys files so I don't want to give the user the other options. Is there a member or a function in the ProToolkit C++ API that can be used to determine if the ProMechItem for the analysis belongs in FEM mode or not?
Solved! Go to Solution.
For anyone that cares, I was able to use a visit function on the measures (PRO_SIMULATION_MEASURE type) and then check for suppressed measures using ProMechitemStatusGet to determine if FEM mode was active since ALL measures get suppressed in FEM mode. ProMechitemStatusGet can also be used to find which analyses are active in the current mode.
For anyone that cares, I was able to use a visit function on the measures (PRO_SIMULATION_MEASURE type) and then check for suppressed measures using ProMechitemStatusGet to determine if FEM mode was active since ALL measures get suppressed in FEM mode. ProMechitemStatusGet can also be used to find which analyses are active in the current mode.