ow121912 Posted September 21 Posted September 21 Hello, I created a simple model where a Source generates an Entity that immediately goes to a Sink. When I checked the Trace, I noticed that in Source1.OnEntityArrival, the entity was created with the name DefaultEntity.7. Why does the numbering start from 7 instead of 0 or 1? I know that entity naming can be defined through a Table, but since my model generates more than 230,400 entities, it is very cumbersome to create names one by one. Without using a Table, is there a way to automatically name the entities as EntityName.0 or EntityName.1? Thank you. Trace On entity arrival Process
ow121912 Posted September 21 Author Posted September 21 I also checked the OnEntityArrival Process of the Source, but since there is no Step related to entity naming, I could not find a solution.
deod Posted September 25 Posted September 25 You can define custom state on entity and use it to name entities. You can use state assignments on source to assign. Every time a new entity is created, increment a model state variable and assign it to custom state on entity.
ow121912 Posted September 27 Author Posted September 27 I tried proceeding with the method suggested by deod, but when I checked the resource plan in the Planning tab, the naming did not appear correctly. I’m sorry to bother you, but would it be possible to take a look at a sample file if you have one available?
ttarkan Posted Tuesday at 01:46 PM Posted Tuesday at 01:46 PM You can set the display name property of the modelentity under advanced options to the state variable you have defined so it will show that variable of the entity in the Gannt chart and trace.
Recommended Posts