question

Alberto M7 avatar image
0 Likes"
Alberto M7 asked tannerp commented

Changing flowitem in a fixed resource

Hi,

I'm testing Flexsim, I created two custom flowitems and now I need a processor, conveyor or any other resource where I can swap or change a flowitem for another.

It's very simple, a flowitem enters and a different one comes out.

Many thanks.

FlexSim 19.0.0
flowitem
5 |100000

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

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered tannerp commented

Hi @Alberto M7,

You can do this using Process Flow or you could use 3D objects with triggers. The idea is that you will use an event, like "On Process Finish", to trigger the destruction of the original Flow Item and the creation of a new one. You could also just change the visual if you want to keep the original item labels and data.

I've created a simple example of the second option using Process Flow. The Event-Triggered Source listens to "On Process Finish", at which time, the Change Visual activity alters the 3D object.

When you do this, however, you may have to adjust the size and rotation of the object. Hopefully this helps!

change-3d-shape.fsm


change-3d-shape.fsm (34.4 KiB)
· 4
5 |100000

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

Alberto M7 avatar image Alberto M7 commented ·

At the moment I'm using 3D objects. I can find the trigger but not the action for destruction-creation of items...

Should I use programming code?

Thank you again.

0 Likes 0 ·
tannerp avatar image tannerp Alberto M7 commented ·

@Alberto M7,

If you look in my example model, you will notice that I used a default Change 3D Shape function in the trigger. I added this in place of the Process Flow trigger in the example model so you can review this.

change-3d-shape-trigger.fsm

0 Likes 0 ·
Alberto M7 avatar image Alberto M7 commented ·

Exactly, I found in your model how to change the 3D shape, but my flowitems have 3D texture too and I need to replace the entire item... I can't find how to replace the texture, only the 3D shape.

Thanks for your help.

0 Likes 0 ·
tannerp avatar image tannerp Alberto M7 commented ·

Here's a Process Flow example that destroys the old object and creates a new one. It should work for your purposes.

change-3d-shape-pf.fsm

0 Likes 0 ·

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.