question

Cameron Pluim avatar image
5 Likes"
Cameron Pluim asked Mischa Spelt commented

misleading documentation for rank()

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

FlexSim 17.0.0
documentation
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
4 Likes"
Matthew Gillespie answered Mischa Spelt commented

Good catch! We'll get that fixed.

· 1
5 |100000

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

Mischa Spelt avatar image Mischa Spelt commented ·

@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("...").

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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