Dear all,
Is there any way to reference all subnodes from an object at once without using a "for"?
For example, after combining a few itens, at the end of process, paint all the boxes inside a pallet.
Thanks in advance.
That's exactly the point of a for loop.
for(int i = 1; i <= pallet.subnodes.length; i++) pallet.subnodes[i].as(Object).color = Color.byNumber(i);
We have plans to add a foreach loop in the future that will make the for loop syntax easier for this sort of thing.
9 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