How to write a script to automatically analyze the solution

How to write a script to automatically analyze the solution

1292909313
Enthusiast Enthusiast
647 Views
5 Replies
Message 1 of 6

How to write a script to automatically analyze the solution

1292909313
Enthusiast
Enthusiast

How to write a vb script to click Analyze, and then click Launch

0 Likes
Accepted solutions (1)
648 Views
5 Replies
Replies (5)
Message 2 of 6

bernor_mf
Advisor
Advisor

@1292909313 

Hi,

I have no off the shelf solution for this to provide.

 

What you need to use is runstudy.

Moldflow Insight Help | The runstudy utility | Autodesk

 

Is it possible to submit Batch run through command shell or how to run runstudy in batch ?

 

Hope this helps.

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 6

1292909313
Enthusiast
Enthusiast

I rewrote the script according to your suggestion, and there was the following error, how can I change it, thank you

0 Likes
Message 4 of 6

bernor_mf
Advisor
Advisor
Accepted solution

@1292909313 

Hi,

You cannot launch runstudy from with a script as shown.

(Where it is on last line in code.)
Remove the last line.

 

Either launch from command line:

Moldflow Insight Help | Launching an analysis from the command line on PC | Autodesk

 

Or create studies first, then launch fort batching as suggested here:

Is it possible to submit Batch run through command shell or how to run runstudy in batch ?

 

Hope this helps.

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 5 of 6

1292909313
Enthusiast
Enthusiast

If I just want to use vb scripts to implement this feature, can I do it?

0 Likes
Message 6 of 6

h-fujitaDXJU5
Enthusiast
Enthusiast

Hi.

 

I don't use vbscript .vbs files, but  there is some information to launch runstudy out of Moldflow's command shell window.

I think you can reflect this information for vbscript maybe.

 

I can run runstudy with specific studyfile by Microsoft PowerAutomate. This is my test flow's setting.

 

on the "Run application" window of Powerautomate software (Sorry, my software is displayed in Japanese, I can't paste real screen shot.)

----------------------------

Application path: C:\Program Files\Autodesk\Moldflow Insight 2025\bin\mfstart.exe

Command line arguments:  C:\WINDOWS\SysWOW64\cmd.exe /K title Moldflow Insight 2025 Command Line | runstudy -temp test .\xxxxx.sdy

----------------------------

 

I hope you can invoke from vbs by this information.

(These absolute file path is seen at Moldflow command shell icon's property window.)

 

Regards.

0 Likes