i want to set a CompoundOperation to the Sequence Editor.
With a mouseclick on "Set Current Operation" it works just fine.
But after this line nothing happens.
TxApplication.ActiveDocument.SimulationPlayer.SetOperation(compound as ITxOperation);
I get the Compound by:
and filtering the Compound that i want.
ICARUS Consulting GmbH
Engineering Digital Factory
Solved! Go to Solution.
Can you try if this works for you?
TxApplication.ActiveDocument.CurrentOperation = YouFfilteredOperation
If you want to use the default simulation player that is accessible from TxApplication.ActiveDocument.SimulationPlayer, then you need to set the simulated operation as current operation of the document:
TxApplication.ActiveDocument.CurrentOperation = operation;
The default simulation player is associated with the Sequence Editor Viewer.
As a second option, you can create your own simulation player and then you need to set the simulated operation using the SetOperation.
TxSimulationPlayer myPlayer = new TxSimulationPlayer(); myPlayer.SetOperation(operation); myPlayer.PlayWithoutRefresh();