how can use "cpdistance"command in my dll project

how can use "cpdistance"command in my dll project

zhu_m
Not applicable
9 Views
1 Reply
Message 1 of 2

how can use "cpdistance"command in my dll project

zhu_m
Not applicable

[ FlexSim 17.1.3 ]

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!

0 Likes
Accepted solutions (1)
10 Views
1 Reply
Reply (1)
Message 2 of 2

mischa_spelt
Advisor
Advisor
Accepted solution

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.

0 Likes