How to easily convert FlexSim script into a dll file?

How to easily convert FlexSim script into a dll file?

royjuventus29
Enthusiast Enthusiast
687 Views
4 Replies
Message 1 of 5

How to easily convert FlexSim script into a dll file?

royjuventus29
Enthusiast
Enthusiast

[ FlexSim 24.0.1 ]

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?

0 Likes
Accepted solutions (1)
688 Views
4 Replies
Replies (4)
Message 2 of 5

arunTTT2P
Collaborator
Collaborator

Have you gone through this post?

0 Likes
Message 3 of 5

royjuventus29
Enthusiast
Enthusiast
Yes, I have read it. Could you tell me how to achieve the XML.Document and Object.Create("xxx") in the dllmaker compiler?
0 Likes
Message 4 of 5

philboboADSK
Autodesk
Autodesk
Accepted solution

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.



Phil BoBo
Sr. Manager, Software Development
Message 5 of 5

philboboADSK
Autodesk
Autodesk
To create objects using the DLL Maker, use createinstance() to create instances of library classes or createcopy() to create copies of instances.


Phil BoBo
Sr. Manager, Software Development
0 Likes