question

Marco Baccalaro avatar image
3 Likes"
Marco Baccalaro asked Matthew Gillespie answered

Object.name = "new name"

I'm trying to assign a new name to an Object.

I used this syntax but didn't work:

Object source = model().find("source");
source.name = "new name";

So I did a cast to treenode:

Object source = model().find("source");
source.as(treenode).name = "new name";

This works but I read in the manual that the Object should have all the functionality of a treenode.

Is it correct or is something missing?

FlexSim 17.0.0
object namecasttreenode castobject treenode
5 |100000

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

1 Answer

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered

Yes, this is a bug, but it is fixed in 17.0.1 which was released yesterday. You can download it and get the fix now.

5 |100000

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