.Net equivalent to OnAction

Hy,

is it possible to consume the OnAction with .NetApi? → If yes, where can I find the event.

Or is the vcActionContainer the same as IActionContainer?

Thx & Regards
Feature

Hy,

I know its an old topic but still relevant… :wink:

Could anybody tell me why OnAction is not triggered or what is missing here?

Thx & Regards

Connections? …

Jes its connected to the python script.

I had the same problem in python OnAction.

I think ISimAction.Execute() actually does nothing, not implemented.
And for vcAction.send(),vcActionContainer.do() etc. to do anything the simulation must be running, because similar to signals the action execution gets scheduled and processed through the simulation event queue.

In any case, the action system is for implementing simulation logic and behavior and thus only in the Python API. The .NET API is not meant to be used for simulation logic.

Hy @TSy,

I suspected as much, since it unfortunately didn’t work, even though the action was successfully added to the ActionContainer… :confused:

It’s a bit of a shame that there’s an API that doesn’t work, and the ability to trigger actions from .NET would be a very elegant solution!

Regards