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.

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.