question

CHRISTIAN B3 avatar image
0 Likes"
CHRISTIAN B3 asked Jeanette F commented

Move Flow item into TaskExecuter's animation object

MoveFlowItemIntoAnimationObject - 24.fsm


In this small model we have a tray animated object belonging to an AGV TE.

My final objective is to be able to animate the box flow item accordingly to the tray object animation, without using kinematics.

I thought that if I could be able to unload the box, not into the TE, mas into the animatable object (orange tray), the rest would follow.

Is it possible to move/unload the flow item into the animated object ?

I created the object reference like below but gives the error message: "Invalid down cast, Object is not an instance of the target type".

code-tentative.jpg

Thank you


FlexSim 24.2.2
agvtaskexecutorsanimations
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @CHRISTIAN B3, was Lucas Klein'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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Lucas Klein avatar image
1 Like"
Lucas Klein answered Joerg Vogel commented

The feature that you are looking for, is called DrawSurrogate, it allows you to replace a surrogate item inside your custom animation with a flowitem from your model without direct coding.

At the link below you can find more info about how to use and configure the drawSurrogate inside animations:


https://docs.flexsim.com/en/24.2/Using3DObjects/CreatingCustomObjectsAnimations/CreatingCustomAnimations/CreatingCustomAnimations.html#components


You can also look for example models here in the answers forum that uses draw surrogate.

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

Joerg Vogel avatar image Joerg Vogel commented ·

Phil Bobo attached some tutorials of an older FlexSim version as PDF files to an answer. https://answers.flexsim.com/questions/83111/how-to-use-draw-surrogate-correctly.html

A tag to this answer is “animation tutorial”. @CHRISTIAN B3, If an answer takes to long, you may find an given answer in this forum yourself faster.

1 Like 1 ·