SCM pops up a window during an API program is executing

SCM pops up a window during an API program is executing

kimura.shinichiro
Explorer Explorer
594 Views
3 Replies
Message 1 of 4

SCM pops up a window during an API program is executing

kimura.shinichiro
Explorer
Explorer

Hi, everyone. Could you please teach me about API?
I am using MoldFlow version 2021.1.

 

I am trying to automate a series of operations of simulation by using the API. In the API program, I am utilizing the "StudyDoc.MeshNow" or "StudyDoc.AnalyzeNow" commands, but these commands make an appearance window related to SCM below.

kimurashinichiro_0-1667294324877.png

 

This window requires user operation to close. So, due to this window, the API program is stopped by waiting for user input.

 

I know that utilizing MDLmesher or "runstudy" utility can avoid using SCM but, the process that using them is slower because the definition of the injection process is complex.

 

So, is there any way to avoid the appearance of the window or control the window by API?

0 Likes
Accepted solutions (2)
595 Views
3 Replies
Replies (3)
Message 2 of 4

bernor_mf
Advisor
Advisor
Accepted solution

Hi @kimura.shinichiro ,

 

did you try this:

StudyDoc.MeshNow False
where the boolean is
aPrompts set False will prevent showing prompt on GUI

 

And:
Set StudyDoc = Synergy.StudyDoc()
StudyDoc.AnalyzeNow2 False, True, False
where the booleans are:
aCheck whether model checking is to be performed
aSolve whether the model solution needs to generated by the analysis
aPrompts set False will prevent showing prompt on GUI


Let us know about the progress.

 

Regards,
Berndt

( If my comments are accepted, provide "Kudos" as appreciation. If your request is answered/resolved, please click the "Accept as Solution" button. Thanks.)
0 Likes
Message 3 of 4

kimura.shinichiro
Explorer
Explorer
Accepted solution

Hi, @Anonymous

 

Thank you for your reply.

 

I had done many tries and errors regarding this issue for a long time but, after I read your message, the issue has completely solved within one hour. I am so grateful for your help. Very very thank you.

 

Best regards,
Kimura

0 Likes
Message 4 of 4

bernor_mf
Advisor
Advisor

@kimura.shinichiro 

Hi Kimura,

thank you for for the feedback, and letting us know.

 

Happy to hear your issues were resolved. 😊

 

Best Regards,

Berndt

( If my comments are accepted, provide "Kudos" as appreciation. If your request is answered/resolved, please click the "Accept as Solution" button. Thanks.)
0 Likes