When using the sampling tool to select the calculated table choose the lower entry. This will add the "Table value" option into the Value field.
Your code isn't working because you first need to cast the treenode reference into a table class variable in order to use the [row][col]-syntax to read entries. You can see how this is done by inspecting the code of the "Table value" option.
Hi @Felix Möhlmann,
Got your point.
But I have 1 question here:
When we provide table keyword while referring "Table" in custom code all the table gets populated including calculated tables. So why we need to convert it in table format again to print the cell value?
Thank you!
Because "reference" points to the node of the calculated table, not the data table. If you want to use the reference variable, you thus have to convert it first.
You can of course just not use the reference and access the table cell directly by refering to it by name, as you describe, with the Table() constructor.
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved