question

chen H avatar image
0 Likes"
chen H asked Ben Wilson converted comment to answer

I create a user command,but it dosen't work in my Flexscript code?

I create a ClientSocketStart command and call it in OnRunStart triggle.

The error as below:

Flexscript Error MODEL:/Tools/OnRunStart Line 12 Unknown command ClientSocketStart being called
Flexscript Error MODEL:/Tools/OnRunStart Line 12 Could not resolve correct operator for = operation. Left side type is Variant&, right type is (invalid)
Flexscript Error MODEL:/Tools/OnRunStart

FlexSim 18.2.2
user commandflexscript error
· 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

chen H avatar image
0 Likes"
chen H answered

I found the root cause of the problem. The reason is that in the tree structure, the default sorting of Tools folders is 2. I accidentally put the sorting of a node in front of Tools, which makes Usercommand unrecognizable.

Thanks.

5 |100000

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