Skip to main content
12-Amethyst
February 1, 2018
Solved

Determining Analyses Solver Type Using ProToolkit

  • February 1, 2018
  • 1 reply
  • 1619 views

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?

Best answer by cketterling

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.

1 reply

cketterling12-AmethystAuthorAnswer
12-Amethyst
July 20, 2018

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.