question

Alexander Muff avatar image
1 Like"
Alexander Muff asked Matt Long commented

Change Shape Frame - Process Flow

Do you have an example of changing the shape frame? In the SHape Frame tutorial you reference an empty bottle, a filled bottle, and a capped bottle. Do you have this logic written in process flow?

FlexSim 17.1.2
shape frame
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

·
Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Matt Long commented

So how you get this to work, is you need to set up what Shape Frames you want your flow item to have before hand. To do this, you need to go to your Toolbox, and then your FlowItem Bin. Double click on the flow item you want to change. It will open the flow item bin window. Then just double click on the 3D shape of the flow item you want to edit, and click on the General tab in the properties window. You will see a drop down where you can add new Shape Frames to the object. Add the shape frames you want, with the 3D models you want. and save and close.

Then in Process Flow, you can just use the change visual activity on your item label. Just select change shape frame from the drop down menu. And set the Shape Frame that you want.


flowitem.png (64.4 KiB)
shapeframe.png (7.5 KiB)
· 3
5 |100000

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

Alexander Muff avatar image Alexander Muff commented ·

code-snippet-capture.png

Thanks for the response. When using the "Change Visual" block, I couldn't get it to populate any other shape frames beside "Base Frame.

I also got it to work using a "Code Snippet" block and setframe(current, 1) logic.

1 Like 1 ·
Matt Long avatar image Matt Long Alexander Muff commented ·

Looks like a small bug, we just need to update that pick list's gui so it will properly populate the shape frames. Thanks for pointing this out.

1 Like 1 ·
Matt Long avatar image Matt Long Alexander Muff commented ·

You can also just type the name of your shape frame (or put the index number) into the Frame box in the pick list.

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.