question

Marie Lisa avatar image
1 Like"
Marie Lisa asked Marie Lisa commented

How to import a temperature curve and let the object change the colour?

Hello guys,

For example, we have a Box which is in our program a square steel. It comes out of an oven and it loses its temperature. Is it possible to define the box with losing its temperature or to deposit the curve in the options of the box?
Also if the box leaves the source, it is red. When going through the whole complex it should change its colour by time. From red to orange to brown and to black. Is this possible?

Thank you in advance.

Yours,

Muhamed

FlexSim 17.1.2
boxredcurvetime to go out object
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

·
jing.c avatar image
7 Likes"
jing.c answered Marie Lisa commented

Hi, Muhamed.

You can try to use animation to achieve what you want if the steel look the same.

I attach a model here.

1. You should add a component as surrogate.

2.Expand all keyframes of the component. Positon the color-keyframe and add the new component keyframe, then change the color for next keyframe.

3. Start the animation in the OnEntry trigger of Processor.

More detail you can check the attached model.

Hope it can help you.


pic2.png (170.8 KiB)
pic1.png (152.6 KiB)
1.gif (256.8 KiB)
· 7
5 |100000

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

Marie Lisa avatar image Marie Lisa commented ·

Thank you very much.

It helped me a lot :D

0 Likes 0 ·
Arun Kr avatar image Arun Kr commented ·

Good one Jing.

0 Likes 0 ·
jing.c avatar image jing.c Arun Kr commented ·

Thanks :D

0 Likes 0 ·
Marie Lisa avatar image Marie Lisa commented ·

@jing.chen can you tell me where to find the cube component properities? or where to add the draw surrogate?

0 Likes 0 ·
jing.c avatar image jing.c Marie Lisa commented ·

Drag from component library on the left.

1 Like 1 ·
1.gif (204.8 KiB)
Sinisa avatar image Sinisa commented ·

@jing.chen did you make the custom code in the Processor yourself ? Or can i just put "Start Animation" OnEntry trigger ?

0 Likes 0 ·
jing.c avatar image jing.c Sinisa commented ·

Hi Elisabeth.

You need two command: setanimationvar() and startanimation() which you can find OnEntry trigger from my model here(click button to open the code editor).

2 Likes 2 ·
editcode.png (556 B)

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.