How to use MongoDB in flexsim as database

aravind_d
Not applicable
0 Views
5 Replies
Message 1 of 6

How to use MongoDB in flexsim as database

aravind_d
Not applicable

[ FlexSim 19.2.0 ]

HI,

1. I would like to get the input data from MongoDB to store it in the global table and store the output results to the global table and also directly in MongoDB. Please let me know how to connect to MongoDB from FlexSim.

. Thanks in advance for your help

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

steven_hamoen
Not applicable
Accepted solution

@Aravind D Considering the fact that MongoDB is not supported in de DBConnector, there are 2 ways you can go.

1. Use the standard ODBC path. I think that MongoDB has an ODBC driver (at least a very quick google search tells me that)

2. Considering MongoDB is written in C++ it should not be to hard to use a native driver and create your own FlexSim dll that calls the database directly.

Message 3 of 6

aravind_d
Not applicable

Hi @steven.hamoen

sorry for the late reply,

1.I installed the ODBC driver using the standard ODBC path, but in Flexsim if I select ODBC and after giving the login and username and password the DBConnector is not connecting.It says that it is not the default driver and data source is not available

2.And for the Flexsim dll part. I don't know how to create Flexsim dll that calls the database directly.Can you please help me in creating a Flexsim dll that uses MongoDB to connect in Flexsim has DBConnector

Thank you for your help in advance.

0 Likes
Message 4 of 6

steven_hamoen
Not applicable

@Aravind D

With 1 I can't help you. Please search the internet or this forum for situation that are similar to yours. You can also take a look at all the commands in FlexSim that start with "db" and see if those can communicate with your ODBC connection.

For point 2 also please search this forum. If you type FlexSim DLL or DLL SDK so will find a lot of posts and one of the first is where you can download the module SDK. The module SDK itself has quite a lot if information on how to create a DLL.

0 Likes
Message 5 of 6

philboboADSK
Autodesk
Autodesk

1. See Jordan's answer to Connecting Access database for an example of how to modify the connection string directly in the tree to access an ODBC connection.



Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 6 of 6

jason_lightfootVL7B4
Autodesk
Autodesk
0 Likes