how can I change the color of the part once it is processed and not the color of the container, see model atatched
how can I change the color of the part once it is processed and not the color of the container, see model atatched
The item is a container. A container contains other objects. They are items in subnodes themselves. If you want to change an attribute of a subnode object you need a reference or pointer to them. You can use the property subnodes to get the reference. Then you want to change an attribute of an object. "subnodes" belongs to the treenode class and isn't an object. You cast the treenode to an object and then you can assign a color out of the Color class to the attribute color.
item.subnodes[1].as(Object).color = Color.blue;
The number is in the square brackets the rank of the subnode item in the container. The property "length" can you use to get the content of the container.
int contentOfItem = item.subnodes.length;
8 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