question

vincenzodm avatar image
0 Likes"
vincenzodm asked Logan Gold answered

Specific Code Snippet command for Flexim 2016

image1.pngHi, I wanted to know the similar Code Snippet command "ts.first.destroy ()" (destroy the first activity for the Transporter) running for Flexsim 2016 version 16.0.1. Thank you!

FlexSim (other)
FlexSim (other - please specify)
code snippet
image1.png (48.3 KiB)
5 |100000

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

Logan Gold avatar image
2 Likes"
Logan Gold answered Logan Gold edited

To answer your original question, you can do something like this (which will do the same thing that Karuppasamy Pitchai's code does):

destroyobject(first(ts));

However, it sounds like you are wanting to change how the Transporter is handling its offset travel as part of the unload task. If you would like more help on how to make these changes, please post a new question.

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
1 Like"
Joerg Vogel answered Joerg Vogel commented

You can change the tasktype of a Tasksequence instead of deleting the task. The tasktype tag hasn't got any influence on the taskexecuter.

changetask(ts,1,TASKTYPE_TAG);
5 |100000

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

Karuppasamy Pitchai avatar image
1 Like"
Karuppasamy Pitchai answered vincenzodm commented

Hi Vincenzo,

Try this "destroyobject(rank(ts,1))".

Regards

Karuppasamy

5 |100000

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