question

Arun avatar image
0 Likes"
Arun asked Arun commented

Access Object attribute tree

Hi,
Is there a way to access "Attribute tree" in code.
1721323718705.pngI tried using DOT function but no result.

br
Arun

FlexSim 24.0.2
object treenode
1721323718705.png (34.5 KiB)
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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Arun commented

Many of the attributes can be accessed through the "attrs" property.

https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Property-attrs

In a path string, entering an object's attributes is done through ">" (Model.find("Processor1>stats"), for example). See the documentation on the "find" method for more information about how to traverse the model tree.

https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Method-find

· 5
5 |100000

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