for a model with many solutions, I can solve all solutions in one action: "Solve All Solutions".
I make use of the "Advanced Solver Option" -> "Subset Export" in the "Export Options" tab, to work with a "Selected Group". For this process, NX requests the "Model Setup Check" to be de-activated.
But I can't find how to de-activate "Model Setup Check" for all solutions in the model when I launch a "Solve All Solutions", so there are errors which prevent the solving. I need to solve solutions one by one...
Solved! Go to Solution.
Unfortunately, this cannot be done. The model check toggle is a property on the Solve dialog - it is not a property of the solution, so it cannot be set in advance.
The only workaround would be to write a custom "Solve All Solutions" journal to loop through all of the solutions and solve them. The API call to launch the solve for an individual solution (NXOpen.CAE.SimSolution.Solve()) takes the SetupCheckOption as its second argument so you could set it to "DoNotCheck" in the journal.
Fortunately, this journal is very simple:
Option Strict Off Imports System Imports NXOpen Imports NXOpen.UF Module SolveAllSolutions Sub Main() Dim theSession As Session = Session.GetSession() Dim SimPart As CAE.SimPart = theSession.Parts.BaseWork Dim Simulation As CAE.SimSimulation = SimPart.Simulation For Each solution As CAE.SimSolution In Simulation.Solutions Simulation.ActiveSolution = solution solution.Solve(CAE.SimSolution.SolveOption.Solve, CAE.SimSolution.SetupCheckOption.DoNotCheck) Next solution End Sub End Module
import sys import NXOpen from NXOpen import CAE theSession = NXOpen.Session.GetSession() def main(*args): SimPart = theSession.Parts.BaseWork Simulation = SimPart.Simulation for solution in Simulation.Solutions: Simulation.ActiveSolution = solution solution.Solve(CAE.SimSolution.SolveOption.Solve, CAE.SimSolution.SetupCheckOption.DoNotCheck) # Main program. if __name__ == "__main__": main()
thank you for your answer and helpfull advice, I will try the journal method as soon as I can.
Do you think if I file an ER the ability to choose "No Model Setup Check" could be an option in the NX Advanced Simulation Workflow of the "Solve All" command?
sorry for the latency, I only tried the vb today.
There seems to be an issue:
I have more solutions, some have already results.
Please let me know what information could be helpful.
I updated the code in the original reply to include a line to set the solution as the active solution prior to solving.