question

Sebastien avatar image
0 Likes"
Sebastien asked Sebastien answered

How to coldlink to a machine label ?

Hi,

In my custom GUI I have an edit field that should be linked with a machine's property. By following the manual I could make this field linked with a variable of the machine, but I could not do it with a label.

The manual says:

Links should be made to a node that contains some desired value. Sometimes linking directly to the object property node is undesireable, such as code nodes. In this case, link to a label and use the label value as part of the code property (use executestring()).

I am interested in linking the edit field with a label of my focusobject but I do not understand how the last sentence. Could somebody explain to me why and how do we to use executestring() in this case ?

Best regards,

FlexSim 19.0.0
guicoldlinkprocessor label
5 |100000

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

1 Answer

·
Sebastien avatar image
1 Like"
Sebastien answered

I found the solution.

I can simply retrieve the machine with which the GUI is linked with

node("@>objectfocus+",current)

then I could change all the labels.

5 |100000

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

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.