CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   JScript for Start Over - Design Modeler (https://www.cfd-online.com/Forums/fluent-udf/223826-jscript-start-over-design-modeler.html)

Tim Crimson January 28, 2020 07:35

JScript for Start Over - Design Modeler
 
Hello community

Is there any way to script the following in the Design Modeler:

'File---> Start Over (CTRL+N)'

I tried with 'ag.m.NewSession (true);'

The problem with this command is the following: it successfully resets the Design Modeler to blank if the Design Modelers consists of Sketches alone. However, if the Design Modeler consists of both Sketches and Bodies, an error will occur. So, the command does not have the same effect as 'Start Over', because Start Over successfully resets everything to a new clean Design Modeler window.

Therefore, is there any way to code 'Start Over' in JScript, or is there anyone that has a suggestion?

/Tim


All times are GMT -4. The time now is 05:54.