How to find a flowitem using its unique id?

How to find a flowitem using its unique id?

suhas_h2
Not applicable
311 Views
5 Replies
Message 1 of 6

How to find a flowitem using its unique id?

suhas_h2
Not applicable

[ FlexSim 19.1.2 ]

Is it possible to find a flowitem using its unique id?

0 Likes
Accepted solutions (1)
312 Views
5 Replies
Replies (5)
Message 2 of 6

zac_h_adsk
Autodesk
Autodesk
Accepted solution

@Suhas H2

Are you able to post your model? If so we can better help you with your problem in specific.

There are 2 ways you might be able to do this. First, at the top of the screen click on View -> Find Objects and then on the right side of your screen you will see a location to place a value and click Find. Depending on your situation you might be able to click on the label or id and the search for a red outlined box which you can click on and it will highlight the item in the model.

25615-finding-item-by-id.png

Message 3 of 6

suhas_h2
Not applicable

Thanks for the reply @zachary.h

I tried accessing a flowitem using Model.find(tostring(uniqueid of item)) this didnot work for me.

Do you have any other command to access flowitem using its unique id?

0 Likes
Message 4 of 6

zac_h_adsk
Autodesk
Autodesk

Can you upload your model?

0 Likes
Message 5 of 6

suhas_h2
Not applicable

I was trying to use unique id to reference an object in my model.This is the practice model where i am trying to send an item from processoe to the queue using flowitems unique id.

test-uniqueid.fsm.

0 Likes
Message 6 of 6

zac_h_adsk
Autodesk
Autodesk

The following code is all that you need to send an item.

param(1) already attaches the unique id to "item"

Object current = ownerobject(c);
Object item = param(1);

moveobject(item,Model.find("Queue11")); 
0 Likes