question

Aravind D avatar image
0 Likes"
Aravind D asked Steven Hamoen commented

How to import a DLL into Flexsim and how to call the dll function

Hi,

I have created a dll which has the functions of a database. It can do what SQL Server or MYSQL does in the db-connector. How can i import the created DLL into the flexsim model as call the functions of the dll to make it work in flex script.I dint know where to start, to load the dll into the model and call those functions

Can anyone help me with some step by step process

Thanks in advance.

FlexSim 19.2.0
databasedlldatabase connectordll functionsdatabase import
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Steven Hamoen avatar image
2 Likes"
Steven Hamoen answered Steven Hamoen commented

@Aravind D

I'm not sure what way you used. Did you use the DLL maker or the Module DLL? For both there is more information on the forum. For instance this post about the DLL Maker: DLL Maker

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Aravind D avatar image Aravind D commented ·

Hi. @steven.hamoen

The link reference you have provided in your reply doesn't exist anymore, so please provide me a working link or the solution. I already have the DLL with the required functions in my local drive. I need a way to provide the path in FlexSim model so that, the model can find this DLL.

ThankYou.

0 Likes 0 ·
Steven Hamoen avatar image Steven Hamoen Aravind D commented ·

@Aravind

The link is certainly not dead. Here it is complete:

https://answers.flexsim.com/questions/31319/how-do-i-convert-a-script-to-a-dll-and-then-call-t.html


If you select the DLL button at the bottom of any trigger you can see this same example:

This is how you call your dll function. If you write this on a random node you have to toggle the node as dll:


0 Likes 0 ·
dllexample.png (12.8 KiB)
toggleasdll.png (12.0 KiB)