How to automatically fetch and run the. dll file when the model is opened

How to automatically fetch and run the. dll file when the model is opened

lancewu
Not applicable
138 Views
2 Replies
Message 1 of 3

How to automatically fetch and run the. dll file when the model is opened

lancewu
Not applicable

[ FlexSim 22.1.4 ]

At present, I know of a method that we can implement through the following code to automatically run the txt document that has already been written in flexscript when the flexsim model is opened.

Is there a method to automatically run the Dll file defined in C++using a script when I open a new model?

Functionality similar to the following code, but changed from a txt document to a Dll file

"C:\Program Files\FlexSim 2022\program\flexsim.exe"C:\Users\username\Documents\Flexsim 2022 Projects\test.fsm" /maintenance nogui_disablemsg_runscript /scriptpath C:\myscript.txt

0 Likes
Accepted solutions (1)
139 Views
2 Replies
Replies (2)
Message 2 of 3

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

There are many ways to do this. One would be to call a usercommand which is linked as external code to a dll function using a newmodelinstall dropscript of a userlibrary you've set to always load.

0 Likes
Message 3 of 3

lancewu
Not applicable

thanks,jason.You always provide me with the right approach to solving problems!

0 Likes