I'm trying to delete all labels on a token using FlexScript. I've tried this example but it didn't seem to work. Is there another way to delete all labels on a token using FlexScript? Thanks in advance for your help.
I'm trying to delete all labels on a token using FlexScript. I've tried this example but it didn't seem to work. Is there another way to delete all labels on a token using FlexScript? Thanks in advance for your help.
Create Token activity to get a new token, then you send the token with all labels simply into a sink activity.
Thanks @Jörg. So is there no way to do this using FlexScript? I can remove one token label using FlexScript with no problem, but removing all labels at once seems to not work for me.
token.as(treenode).subnodes["labels"].subnodes.clear();This works for a custom code.
Thank you @Jörg, this works. I was hoping it would be as simple as
token.labels.destroy();
or
token.labels.clear();
But your code still works nicely. :^) Thanks again.
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