question

mark zhen avatar image
0 Likes"
mark zhen asked Jeanette F commented

Display the name of the goods

i want to show the name on the box how can i do

0826new_2 (1)_autosave.fsmexcel.xlsx

FlexSim 20.0.10
agvflexsim 20.0.10
excel.xlsx (9.0 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @霈倫 , was one of Felix Möhlmann's or 霈倫 's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Ryan Clark commented

In the attached model I created a custom text object. When it is not inside any object it will display "No Container". When moved into an object it will instead display the name of that object and adjust its position and size to fit the object. (Not entirely, as the size difference between characters isn't taken into account)

Have a look at the custom code in the "Text Display" option to see how it works.

In an "On Creation" trigger of the source I create of copy of this object inside each newly created item.

If you run the model, you will see eight items with different names get created, with their names displayed by the copies of the text object inside the items.

1630568008584.png

Display_Item_Name_fm.fsm


· 16
5 |100000

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

mark zhen avatar image mark zhen commented ·
so what can i add to my model??
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann mark zhen commented ·

You can copy the text object over into your model and add the code line you find in the trigger of my source to yours. Make sure the name you enter in the code is the same as the name of the text object. A copy of the text will then be added to your items, displaying their name (currently just "Box").

1630576792137.png

0826new-2-1_fm.fsm

0 Likes 0 ·
1630576792137.png (151.6 KiB)
0826new-2-1-fm.fsm (199.5 KiB)
mark zhen avatar image mark zhen Felix Möhlmann commented ·

Where should I put your textcode

0 Likes 0 ·
Show more comments

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.