question

Mark S3 avatar image
0 Likes"
Mark S3 asked Connor A commented

The Objcet class type is not available in Dll-Maker.

I found that I could not use the Object type, only the treenode type .How can I use Object type in Dll-Maker?

Meanwhile, I would like to know that the current version of DllMaker is 2013. How can I update DllMaker to be compatible with the latest version of Flexsim?

20211207164244.png

FlexSim 21.2.4
dll-maker
20211207164244.png (10.5 KiB)
· 1
5 |100000

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

Connor A avatar image Connor A commented ·

Hi @Mark S3, was Phil BoBo's answer helpful? If so, please click the "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
2 Likes"
Phil BoBo answered Phil BoBo edited

You don't use the Object type using the DLL Maker. The Object type is a FlexScript class, not a C++ class. The new FlexScript Class API is not compatible with C++. The old global FlexSim commands are compatible with both FlexScript and C++. If you are using the DLL Maker, then you should be using those global commands.

Also, the DLL Maker is forward compatible. A DLL built for FlexSim 7.7 can be loaded and run using any version from FlexSim 7.7 to now, including FlexSim 2022. The latest version of the DLL Maker from 2017 works perfectly fine to generate DLLs that are compatible with FlexSim 21.2.4 and FlexSim 22.0.0. The DLL Maker project does not need to be updated with newer versions of FlexSim.

If you want to generate a DLL that is tied to the FlexSim version it is built against, you can use the Module SDK. Using the Module SDK, you include the latest header files to access public classes and functions directly. The downside of this approach is that you must re-compile your DLL for each version of FlexSim that you want to target (using the latest headers for that version). The upside is that you can add and subclass FlexSim object classes directly. You can completely customize the program with your own library of hierarchical classes. This is how most of the objects in the library are built (such as AGV, Conveyor, People, Process Flow, GIS, FloWorks, etc.).

See also Dot syntax in FlexSim Dll Maker - FlexSim Community and How create subnodes using DLL Maker - FlexSim Community

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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