getvarnode(Model.find("Combiner1"), "componentlist").as(Table)[1][1] - I want to change the value of this node
getvarnode(Model.find("Combiner1"), "componentlist").as(Table)[1][1] - I want to change the value of this node
Table components = Model.find("Combiner1").as(Object).attrs.variables.subnodes["componentlist"]; components[1][1] = 2;
Just add "=4" to set it to 4 as you already have a reference to the table value, not a treenode.
The question title doesn't refer to using tables just treenode. To set the value of a treenode you would just use '.value='
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 | © Autodesk Inc. All rights reserved