Specific Code Snippet command for Flexim 2016

Specific Code Snippet command for Flexim 2016

vincenzo_dm
Not applicable
12 Views
3 Replies
Message 1 of 4

Specific Code Snippet command for Flexim 2016

vincenzo_dm
Not applicable

[ FlexSim (other) ]

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!

0 Likes
Accepted solutions (1)
13 Views
3 Replies
Replies (3)
Message 2 of 4

karuppasamy_pitchai
Not applicable

Hi Vincenzo,

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

Regards

Karuppasamy

Message 3 of 4

joerg_vogel_HsH
Mentor
Mentor

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);
Message 4 of 4

logan_gold
Community Manager
Community Manager
Accepted solution

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.