Hi,
I duplicate control point connection list. But there isn't any value in list. Is there any way except connect control point again? Thank's.
Hi,
I duplicate control point connection list. But there isn't any value in list. Is there any way except connect control point again? Thank's.
Populating that list is probably handled by some internal logic that is not directly (at least not easily) accessible.
As a workaround you can run the code below when the model starts to copy all entries to the second list. For example by putting in a small process flow block that creates a token at time 0.
I tested the code with "Location" connections. It should work the same with the DropoffPoints, but you have to adjust the path in line 1 and the list name in line 2.
treenode listPartitions = Model.find("/Tools/GlobalLists/Location>variables/partitions"); List copy = List("Location_2"); for(int i = 1; i <= listPartitions.subnodes.length; i++) { treenode partition = listPartitions.subnodes[i]; treenode value = getsdtvalue(partition, "id"); treenode entries = partition.subnodes[1]; for(int j = 1; j <= entries.subnodes.length; j++) { copy.push(entries.subnodes[j].value, value); } }
13 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