question

Jonathan avatar image
0 Likes"
Jonathan asked Jonathan edited

Processor Trigger to change flow item

I have a custom flow item going into a processor. On process finish I want to change the flow item to a different custom flow item. Both custom flow items have different frame sizes and shapes.

Using the built in pick list, neither change 3d shape nor change frame work. Using change 3d shape squishes the new flow item into the same xyz dimensions of the original.

What it looks like is doing this is in the flexscript it is setting z, y, and z variables to the xsize, ysize, and zsize of the original flow item instead of getting the size of the new flow item.

This shouldn't be that hard to do this. Why isn't there a change flow item option in the pick list?

For now, how do I get my final flow item to show up as the correct size? I've tried creating another frame for the original but it does the same thing.

(Running 20.0.8 and I am unable to upgrade due to my company's licensing server at the moment.)

FlexSim 20.0.8
flexscriptflow itemsflexsim 20.0.8size
1602856027616.png (181.9 KiB)
1602856036129.png (28.0 KiB)
1602856115215.png (38.9 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.

1 Answer

Jonathan avatar image
0 Likes"
Jonathan answered Jonathan edited

I FIGURED IT OUT!!!

Okay, for those that need to do this in the future:

The processor 'Station' doesn't have the pick list option for setting the size, position, or location of a flow item. But a Source does. So I looked at the Flexscript for the source change size and copied it.

If you want to change your flowitem's size copy this into your trigger code:

Change the pink colored values to the size you desire. For me, I went to my flowitem bin and copied the sizes of the flow item I wanted to end up with:

Reset, run, and done.


1602857503911.png (16.5 KiB)
1602857559903.png (6.0 KiB)
1602857666365.png (90.9 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.