Jump to content

Naming Entities From A DataTable


fed123

Recommended Posts

Hello,


I have a DataTable that one source can use to create multiple entities. I would like these entities to be named properly. Instead the just come out named ent.11XX (a random four digit number starting with 11).


Here is my table, I would like the entities to be the name of the TwiggPN. (Each row produces a different entity):

SimioHelpDataTable.PNG.119cd4aae461b0ec021e5f216868cee8.PNG

Link to comment
Share on other sites

Assuming that your entities are already associated with that row, then you already have a way for each entity to use that identity. For example you could have an attached label using the expression TableName.TwiggPN.


If you wanted to make it even more obvious, you could create a string state on the entity and assign it that same value on creation.


Or, if you wanted to could create 35 different entity types and change that column to be of type entity. But in this case your string is not a valid symbol name so you would have to remove the spaces and add a leading character.

Link to comment
Share on other sites

×
×
  • Create New...