Hi Flexsim community,
I wanted to add a trigger on exit to FluidToItem. I changed the visual to BOX.3ds and changed the color to white. The Item color is changed to White and Item shape remains Circle. Is this a bug?
Thanks in Advance.
Hi Flexsim community,
I wanted to add a trigger on exit to FluidToItem. I changed the visual to BOX.3ds and changed the color to white. The Item color is changed to White and Item shape remains Circle. Is this a bug?
Thanks in Advance.
Hi @Sri_vikas K, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.
There is a slight difference between both objects a circle and a box. You can compare both in the tree. The object circle is a billboard 2D object. You need to disable it by flag operation
Please refer to https://answers.flexsim.com/answers/28299/view.html
item.attrs.find("/visual").subnodes.add().name="shape"; item.attrs.find("/visual").subnodes.add().name="shapeindex"; rebindobjectattributes(item.attrs.find("/visual")); imageindexobject(item).value = 0; shapeindex(item).value = 0; set(drawflags(item),get(drawflags(item)) &~ DRAW_FLAG_BILLBOARD_MASK);
I am not sure, if every code line is necessary. I put this in the onExit trigger of FluidToItem object as first behind header declaration.
EDIT: FluidToItem_shaped_Object.fsm
You still need a change of shape and resize involved item, too.
7 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved