Idea

Jeremy R avatar image
1 Like"
Jeremy R suggested

Add name property to Table

The Token class has the "name" property, which makes it easy to change or read the Token's name.

Global Tables, Statistics Collectors, Tracked Variables, etc. all have constructors that use a string as input to create a reference to a particular global table/etc. of that name. However, there is no easy way to retrieve this string value from the Table object afterwards.

It would be really helpful if there was a read-only property like "name" that could be used to retrieve this value.

As a workaround, I have been using the following code to get the name of a table named TableName.

TableName.as(treenode).up.up.name

However, I would rather not navigate the tree when it doesn't seem like I should need to. Additionally, if you accidentally use this method on a non-treebound table, FlexSim throws an exception. (On the other hand, with a 'name' property I would presumably just be able to append a ? for safe handling on non-treebound tables.)

The same functionality would be appreciated for other similar objects (Statistics Collectors, Tracked Variables, etc.), but Tables are my primary use-case.

tablename
5 |100000

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

No Comments

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.