question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Ankur A3 commented

HowToWriteOnWall?

Hi Team,

Is there any way to write something on wall?

HowToWriteOnWall.fsm

Thank you!

FlexSim 21.0.10
hctextwall
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 Ankur A3 commented

You could use an image with the wanted text in it as the texture of the wall.

1654588101111.png

Alternatively you can adjust the location and rotation of a text object to fit flush against the wall. This would be the prefered option if the text is supposed to change during the model run.

In the attached model I added some code to the text's On Pre Draw trigger that adjusts the location to the center between two pillars. The pillars are referenced through labels of the text object. There are also offset values. These are needed because the 'size' of the text object is fixed and doesn't scale to the actual extend of the text. So depending on the text's length and size, these offsets have to be adjusted for the text to actually at the middle of the wall.

textonwall.gif

howtowriteonwall_fm.fsm


1654588101111.png (151.6 KiB)
textonwall.gif (12.2 MiB)
· 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.

Ankur A3 avatar image Ankur A3 commented ·
Thank you so much! @Felix Möhlmann
0 Likes 0 ·