Object.name = "new name"

Object.name = "new name"

marco_baccalaro
Not applicable
349 Views
1 Reply
Message 1 of 2

Object.name = "new name"

marco_baccalaro
Not applicable

[ FlexSim 17.0.0 ]

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?

Accepted solutions (1)
350 Views
1 Reply
Reply (1)
Message 2 of 2

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

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.



Matthew Gillespie
FlexSim Software Developer