question

Tamilselvan avatar image
0 Likes"
Tamilselvan asked Julie Weller commented

Object and Token Tracing

Is there is any way to trace the token and part(flowitem). To find its location, and time spent in that location and write it to the Global Table.


Thanks in Advance

FlexSim 23.1.1
part tracing
· 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.

Julie Weller avatar image Julie Weller commented ·

Hi @Tamilselvan, was Jason Lightfoot'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

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered

Use the Item Trace Gantt in a dashboard and access the data via the Advanced->View Table option or install it to access its Stats Collector as a regular table.

For tokens right click the activity you want to start tracing and choose Tracing History-> Begin Tracing. To view the history of a token open it from the Trace History button in the token Properties panel. You can export the data from the gui or run a version of this script to export it to a global table:

treenode token=gettokenbyid(5);
treenode instance=token.up.up;
function_s(ownerobject(instance),"buildTraceHistoryTable",reftable("GlobalTable1"),token,0);


Since it uses a function_s call which is not supported - you should not use this in many places throughout your model, but instead place it in a user command and call that as needed (passing in the token as param(1) for example) so that a future change will only need the user command to be updated.


5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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