cancel
Showing results for 
Search instead for 
Did you mean: 

Alternative branches for operation links

Experimenter
Experimenter

Hello!

I'm trying to create operation links from a plugin to Process Simulate. So far I'm able to create links between operations in the following manner:

 var link = comp.CreateLink(new TxOperationLinkCreationData("link", prev_op, new_op));

But if I have several operations that are branching out from one parent op, then all of the children end up as parallel (Simultaneous) operations. I would like to change them into alternatives from the plugin.

I found a command that seems to fit my description, but I don't understand how to implement it.

TxPlcLinkType.Alternative_branch

If I do figure that part out, I would also like to add starting conditions for the alternatives. Here is a picture from Process Simulate showing the problem.

Process Simulate - Transition editorProcess Simulate - Transition editor

 Any help or ideas would be appreciated.

 

Yours sincerely

fussypants