check if control point allocated

check if control point allocated

mehdi_k2
Not applicable
5 Views
1 Reply
Message 1 of 2

check if control point allocated

mehdi_k2
Not applicable

[ FlexSim 19.0.0 ]

hi,

how can check if control point allocated by object in process flow command ?

Thanks in advanced,

0 Likes
Accepted solutions (1)
6 Views
1 Reply
Reply (1)
Message 2 of 2

roi_sn
Not applicable
Accepted solution

Hi @Mehdi K2, if you locate your Control point node in the Tree, you can access to the allocations subnode and check if it is allocated or not by simply typing this:

Model.find("ControlPoint1>variables/allocations").subnodes.length;

37141-1614083077763.png

This will return the number of current allocations that the Control Point has.