question

Ale avatar image
0 Likes"
Ale asked Ben Wilson edited

Using visual text to represent the RUN TIME

Is it possible to show the run time as a visual Text in the 3D model?

Thanks!

FlexSim 17.2.2
visual text
ziplm.png (23.2 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

·
Ben Wilson avatar image
3 Likes"
Ben Wilson answered Ben Wilson edited

Hi @Ale,

The easiest way is to use the Text object, under the Visual section of the library objects.

Drag it out onto your 3D space, then double click the text to open its Properties window.

For the Text Display field, choose Display Text, and enter the following expression:

string.fromNum(time())

EDIT: Updated snippet above with @Jacob Gillespie's dot-syntax suggestion.


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

Jacob Gillespie avatar image Jacob Gillespie ♦ commented ·

You can also use string.fromNum(time()) which will automatically figure out how many digits to print. You can also specify the precicion with a second parameter string.fromNum(time(), 2).

1 Like 1 ·

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.