when i use setlcolor( obj object, num red, num green, num blue ) it works;
But when I use Color ,it cannot work;
the following is the error tips;
when i use setlcolor( obj object, num red, num green, num blue ) it works;
But when I use Color ,it cannot work;
the following is the error tips;
Hi @Li X, was Phill BoBo's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
First,you can use the method of BoBo to test your question. If you haven't solved,you can contact our local China partner (BJCSN), We will provide you with professional FlexSim technical Q&A. contact information: [email protected];
In order to solve your problem better and faster,please upload your model file.
subnodes[index] returns a treenode.
The color property is a property on an Object.
You need to cast the treenode as an Object.
For example:
Object obj = object.first.subnodes[index]; obj.color = Color.blue;
or
object.first.subnodes[index].as(Object).color = Color.blue;
12 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