question

Lucas Klein avatar image
1 Like"
Lucas Klein asked Lucas Klein commented

Module SDK - Update Location

Dear all,

I am exploring the module creation using the module SDK, and I'm having an issue. I have an object in my library that changes the position of a flowItem along the time using the "UpdateLocation()" method, so it creates the feeling of moving my flowItem across my object. The problem is when I close the 3D view, the "UpdateLocation()" method seems not to work, just executing again if I reopen the 3D view. Since I want to run the simulation also with the 3D closed, how could I fix this issue?

FlexSim 20.2.3
flexsim 20.2.3module sdkdevelopment
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

Steven Hamoen avatar image
2 Likes"
Steven Hamoen answered Lucas Klein commented

@Lucas Klein You most likely have it on the OnDraw trigger and that is not fired when you close the 3D window. So you also have to make sure that if the movement is finished you have to call UpdateLocation once. For instance to create an event at the end of the movement or send a delayed message.

· 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.

Lucas Klein avatar image Lucas Klein commented ·

Thanks @steven.hamoen I'll try to do that.

0 Likes 0 ·