question

Tomi Kosunen avatar image
0 Likes"
Tomi Kosunen asked tannerp answered

How to change process flow connector name?

Hi

Is it possible to change the Process Flow connector name thru code? I can write

setname(node("1+",rank(connectionsout(nn),1)), "New name");

It seems that the connector name changes but the text on the Process Flow window does not change.

FlexSim 19.0.0
process flow
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

tannerp avatar image
0 Likes"
tannerp answered
@tomi.kosunen

Make sure you've clicked out of the model tree, connector name, etc. and then adapt this code:

getvarnode(Model.find("Tools/ProcessFlow/ProcessFlow/Displays/Text"), "text").value = "new name";
5 |100000

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