question

ernesto daniel AG avatar image
0 Likes"
ernesto daniel AG asked Phil BoBo commented

3D shapes

hello all

i have a question...

Is there any way to change the 3d shape according to item type?

like,change 3Dshape by case

i hope you could help me

thank you so much

FlexSim 18.1.2
3d shapeby case
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

Joseph Gillespie avatar image
1 Like"
Joseph Gillespie answered Phil BoBo commented

@ernesto daniel AG

It looks like there isn't a way to do this simply with just 3D logic, but it's very easy with Process Flow. I've attached a model that uses a decide in Process Flow to change the 3D shape based on item type.

changeshapebyitemtype.fsm

Let me know if you have any questions!


· 2
5 |100000

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

ernesto daniel AG avatar image ernesto daniel AG commented ·

Thank you so much

that's exactly what I was looking for

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ ernesto daniel AG commented ·

A simpler solution would be to add the different shapes as Frames on the flowitem's Properties window:

Then use the following code snippet to change the frame based on the item type:

int frameNum = item.Type;
setframe(item, frameNum);

20274-changeshapebyitemtype-1.fsm

2 Likes 2 ·