question

Joerg Vogel avatar image
0 Likes"
Joerg Vogel asked Jordan Johnson commented

Assigning spatial treenode to Table Class in Flexscript

I can explore the spatial treenode in an object modeltree as a table. When I try to get access to the same node by flexscript and evaluate it as a table I get only the row headers without any values. How can I evaluate the treenode spatial as a table by code?

FlexSim 17.1.4
tabletable classtreenode cast
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

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Jordan Johnson commented

The Table class was not designed to work this one-dimensional tables. To access the nodes, you can still use bracket syntax with the subnodes object:

  1. someNode.subnodes[3] // or someNode.subnodes["childNodeName"]

To copy the list of nodes, the createcopy() command is still the easiest way.

· 2
5 |100000

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