misleading documentation for rank()

misleading documentation for rank()

cameron_pluim
Not applicable
324 Views
2 Replies
Message 1 of 3

misleading documentation for rank()

cameron_pluim
Not applicable

[ FlexSim 17.0.0 ]

The documentation for the command rank() says the following:

Deprecated. Reference a child node by rank

Parameters

(obj parent, num index)

Description

This command is deprecated. Use treenode.rank.

However, treenode.rank doesn't give you a reference to the child node. it gets/sets the rank of a node. It should say to use treenode.subnodes

Accepted solutions (1)
325 Views
2 Replies
Replies (2)
Message 2 of 3

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

Good catch! We'll get that fixed.



Matthew Gillespie
FlexSim Software Developer

Message 3 of 3

mischa_spelt
Advisor
Advisor

@Matthew Gillespie another small remark, which probably does not warrant its own topic: the help for "node" currently states "This command is deprecated. Use treenode.find().". This suggests to me that there is a static method on treenode that allows one to write treenode.find("..."). Maybe it's worth slightly rephrasing this to something like use find() on a treenode, e.g. model.find("...").