question

Hoang Nk avatar image
0 Likes"
Hoang Nk asked Hoang Nk commented

Display label of flow object in webserver

Hi guys,

I have a question regarded the webserver. 1713219552328.png

I have a model running in webserver like the picture. Each of the cylinder on the ground has a label with their roll_id values. Normally when the model is running on local drive, I can select the cylinder and see the roll_id in the label window. However, I'm not able to do that when sim is running in webserver.

I'd really appreciate if somebody can give me a solution for this problem. Our clients would really like to see the roll_id when the simulation is running, and they can only access the model via webserver.

Is there anything like display text when hoovering the mouse over the cylinder or it can just be static text display, as long as there's something.

Regards,

Hoang Nguyen

FlexSim 23.1.3
flexsim webserveritem label
1713219552328.png (518.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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Hoang Nk commented

You can try setting the roll flowitem's drawflags attribute to zero (via the flowitem bin tree - or use 1024 to keep the no predraw flag) and add your own draw code to display the rollid above the roll.

You can alternatively add an OnClick behaviour to set a value of something that is rendered in the view or on a dashboard.

Other techniques include nesting visual tools inside the flowitem, but I don't recommend this.

· 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.

Hoang Nk avatar image Hoang Nk commented ·
Many thanks, I'll give it a try
0 Likes 0 ·
Hoang Nk avatar image Hoang Nk commented ·

just an update, I found this article and I got what I need, the roll_id can now be added to the cylinder https://answers.flexsim.com/articles/68181/showing-a-label-text-on-flow-item-object.html

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.