question

royjuventus29 avatar image
0 Likes"
royjuventus29 asked Phil BoBo edited

How to easily convert FlexSim script into a dll file?

I know there is a post to talk about this (in 2016). I tried to download the DLL Maker, but it is very old. I have used some recently-added FlexSim scripts in the 2024 version and I would like to easily convert them into a DLL file and call them in a self-defined button. I find some FlexSim scripts (for example XML.Document) are not supported in the DLL Maker. Is there a solution for this?

FlexSim 24.0.1
dll makerflexsim script
· 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
2 Likes"
Phil BoBo answered Phil BoBo edited

XML.Document is a FlexScript class. It isn't accessible in C++. See The Objcet class type is not available in Dll-Maker. - FlexSim Community

If you want to read/write xml from the DLL Maker, use a C++ library, such as tinyxml2. Using C++ libraries is the purpose of using the DLL Maker. If you want to use FlexScript, then just use it directly; you don't need to put such code into a DLL. Create a user command or a node function if you want to call FlexScript functions from other functions.

If you want to access FlexSim C++ classes rather than the basic functions in the DLL Maker, then you need to use the Module SDK.

5 |100000

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