question

mUg24 avatar image
0 Likes"
mUg24 asked mUg24 commented

Change truck 3D shape

Truck 3d shape.fsmHello,

I am trying to chage the 3D shape of a truck after entering to a queue. I tried using triggers of the queue and also by changing the shape through process flow.

But even the truck looks a little bit different it is still a truck. It is also important to notice that this only happens when using a truck from the source, if we assing a different flowitem the 3d chage works.


Can you help me please, I am attaching a sample model.

Thanks in advance!

FlexSim 21.1.1
flexsim 21.1.13d shapes
truck-3d-shape.fsm (33.3 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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered mUg24 commented

Hi @Mercedes U,

this is because the truck consists of multiple parts that are drawn as surrogates of the actual item. You can see this in the animations window (right click on a truck -> Edit -> Animations).

You can delete these surrogates in a custom code activity.

Object Cab = token.item.attrs.drawsurrogate.subnodes[1];
Cab.destroy();

(All other parts are subnodes of the cab, so they will automatically deleted with it)

delete-truck-3d-shape.fsm


· 1
5 |100000

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

mUg24 avatar image mUg24 commented ·

Thank you very much @Felix Möhlmann

0 Likes 0 ·