Use outObjects[n] as you would for other FlexSim objects. So you can discover how many are connected using:
myNN.outObjects.length
Keep in mind that they do not correspond to inObjects of network nodes and so a connection between two nodes is actually two output connections - one from each node.
I assume you want to get evaluated the coupling nodes marked in your picture and get their ownerobjects of the attribute value that is connected to NN2. The result is a pointer to a Network Node object inside the model tree structure.
https://answers.flexsim.com/answers/88980/view.html
This answer is dealing with a different coupling structure, but I think you get an idea how to implement it to your case.
A coupling node value is a pointer to a node in an attribute sub tree of an object. You want to get the topmost node of this object attribute tree, which is the object itself. Therefore you call the command ownerobject of this attribute pointer.
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