question

Nikhil_p K avatar image
0 Likes"
Nikhil_p K asked Ryan Clark commented

How does the DLL maker work with VB.NET?

I'm trying to figure out the best way to control the FlexSim simulation through VB.NET.

Requirement :

Create a FlexSim model and control the objects in the model from the VB.Net code. Will the DLL maker be useful for this requirement. Make a communication between the VB.NET code and the FlexSim via the DLL. Is this possible ?

FlexSim 21.2.0
flexsim 21.2.0dll maker
· 3
5 |100000

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

Ryan Clark avatar image Ryan Clark commented ·

Hi @nikhil_p.k,

It looks like this question may be part of a homework assignment or academic project. The professors who assign simulation modeling exercises using FlexSim expect that the academic integrity of their assignments will be maintained. In addition, we are supportive of Honor Codes or Pledges that regulate the behavior surrounding academic assignments.

I recommend reading our best practices page on the subject, which includes some resources that you should find helpful as you use FlexSim for academic purposes. I also highly recommend Dr. Allen Greenwood’s FlexSim Primer, which was written specifically for students and professors.

0 Likes 0 ·
Nikhil_p K avatar image Nikhil_p K Ryan Clark commented ·
Hello @Ryan Clark


This is part of the research project not for any assignments or homework project.

I went through the FlexSim DLL documentation and there is no information about using these DLLs with VB.NET. Our software is based on VB.NET frameworks and I'm trying to figure out if there are any ways we can pass on instructions to flexsim from the VB.NET.

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark commented ·

Hi @nikhil_p.k, was Phil BoBo's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo edited

The default settings in the DLL Maker are set up to create a native C++ library.

You'll need to adjust the setting of the project to create Mixed assemblies if you want to call managed .NET code from a native C++ function.

See https://docs.microsoft.com/en-us/cpp/dotnet/mixed-native-and-managed-assemblies

For more discussion on application interoperability, see the links in FlexSim Application Programming Interfaces - FlexSim Community

For example, you can read the entire discussion in https://answers.flexsim.com/questions/92218/using-flexsim-with-pythonc-api.html and replace anywhere it says Python with VB.NET and replace any links to Python documentation with VB.NET equivalent documentation for functions that do the same kinds of things, such as starting processes or using sockets.

5 |100000

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