for example I have two types of labels "A" and "B" and I want on process finish the "A" becomes "AA" and the "B" becomes "BB". how to fix this problem
for example I have two types of labels "A" and "B" and I want on process finish the "A" becomes "AA" and the "B" becomes "BB". how to fix this problem
Hi @Chiheb BM, was Jörg Vogel's answer helpful? If so, please click the red "Accept" button on 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.
here I duplicate name character and value of label on process finish. Label is first in labels view.
item.attrs.labels.subnodes[1].name+=item.attrs.labels.subnodes[1].name; //enhance name item.attrs.labels.subnodes[1].value+=item.attrs.labels.subnodes[1].value;// duplicate value
my concrete problem is not to duplicate the name but to change it completely (the simplification of my problem is the following: if the value ( type string) of the label at the input (coming from the source) is " spring "then on process finish I want to have a value label" hardened spring ". and if the label at the input is "bolt" then on process finish I want at the output a value label "hardened bolt"
note: I am still a beginner in the use of flexsim therefore I can confuse between the concepts
You are looking for a way to manipulate a string as label value. Then you should take a look into the methods and operators to work with the string class. Working with labels is part of another class: labelProperties and labels.
If you look closer into the second suggested code line, I concatenate a string value with the same string again. In fact it uses the “+” operator. It is up to you, how you change a string value of a label. Your example shows an operation, where you add at start of a given string another string
item.myLabel = “hardened “+item.myLabel;
If you are confused, what this is all about, then I recommend you do some more tutorials, because labels are one of the most important structures inside of FlexSim.
12 People are following this question.
how to get arrival rate for flow items that arrive an object or node within a time interval ?
Experimenter Triggers - Order of Execution
Why Global Table is cleared after each replication even when "clear on Reset" box is unchecked ?
What is the best way to make an OnResourceAvailable trigger fire only once?
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