question

Thomas JR avatar image
1 Like"
Thomas JR asked Joerg Vogel commented

Label suggestions upon typing

I know that FlexSim is written in c++ from which the OOP style appears. In my models I have created and set several labels in custom code activities like the following

token.First_label = 345;
token.Second_label = “Hello”;

Then later on if I try to access a label, a list of label suggestions would appear. This is really helpful when keeping track of initialized labels. However I have observed that the suggestions are quite inconsistent with the actual labels currently associated with the token in question. Sometimes labels are missing and other times they appear despite no longer existing.

I have programmed quite a few things using java and the eclipse editor. Here, anytime upon accessing object fields (what FlexSim refers to as labels) using dot-syntax a list will appear highlighting all current fields.

Am I unable to see my custom token labels due to way in which I create and set labels?

FlexSim 20.1.3
flexsim 20.1.3labels
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @thomas.jr, was sam.stubbs'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.

0 Likes 0 ·

1 Answer

·
Sam Stubbs avatar image
2 Likes"
Sam Stubbs answered Joerg Vogel commented
As far as I am aware the smart labels are mostly recognized from inputs via the label fields etc. If you are creating and assigning the labels via code the autocomplete and popups may not recognize those labels.
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Thomas JR avatar image Thomas JR commented ·

@sam.stubbs

Ok, too bad. When you say "... inputs via the label fields..." do you mean whevener you use the "Assign labels" activity?
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Thomas JR commented ·

I think it depends more on the labels tab of property windows and quick properties pane. If you assign a label by code in an object and you later open the property window of the object again, the label exists in the scope of the labels tab and then it is associated with the highlight mechanism. This happens similar in Process Flow. Once the process has been run all used labels are available in highlight mechanism. Before such a run you get labels only highlighted if they were assigned in entry fields of activities.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.