question

Tushar H avatar image
0 Likes"
Tushar H asked Logan Gold commented

Set a number as a name at the beginning of the Stations or processors

Hello All,

I want to use number as a name at the beginning of the station or processor. its showing underscore but can we do without underscore.

FlexSim 24.2.1
object name
· 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.

Hi @Tushar H, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Logan Gold commented

There are always some restrictions in programming. Naming is such a restriction. You are not allowed to give a name beginning by a number character for object names in FlexSim.

If you need it in your model view then you can adjust what you see in draw trigger of objects. You can let show the content of string label in 3D model view instead of the name of the processor from the model tree object. A string label can start by a number character.

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

Logan Gold avatar image Logan Gold ♦♦ commented ·
The reason you can't use a number as the name of an object/node is because you can get a reference to nodes in a tree by their rank. So when you try to reference that object by its name, if it's a number, then FlexSim sees the number and tries to find the object by its rank instead of its name. A good example of what that looks like is in the treenode.find() documentation (Example 2 in the Description).


And I think even if you have text after a number in a node's name, it can still mess with things, so that's why the underscore is automatically added to the beginning. You can replace the underscore with any other text to get the same effect.
0 Likes 0 ·