question

ZHU M avatar image
0 Likes"
ZHU M Suspended asked Mischa Spelt answered

how can use "cpdistance"command in my dll project

Hi,

I'm buiding a dll project and I want to use the "cpdistance()" ,but I can't find it in "FlexsimFuncs.h", can anyone help me?

By the way I already got the latest dllmaker from bitbucket.

Thank you!

FlexSim 17.1.3
dll maker
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

Mischa Spelt avatar image
0 Likes"
Mischa Spelt answered

I assume cpdistance is defined in the AGV module. You can try if you can generate a .lib file from the AGV model and ask the devs for the headers of that module.

An easier option is probably to create a node in the tree somewhere in a known location such as MAIN:/project/exec/usercommandlist (you can create it dynamically from the DLL) and make that call cpdistance; then from your DLL evaluate the node.

5 |100000

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