Automatic gear change in motion

I am trying to simulate automatic transmission in Solid Works Motion.

I can manully change gear using the timeline by disabling one gear ratio and enabling the next.

However, I would like to use speed to trigger the gear change.

While an IF statement in the Expression can monitor speed and use it in a calculation, I do not seem to be able to use it to activate / deactivate a gear relationship.

(In other respects the Expression facility is quite limiting as It is difficult to formulate a succession steps changes in a nested if statement)

Is there any way that I can monitor / control a motion simulation from a more flexible programming environment.

I am aware of VBA but any examples I have seen seem to suggest that it only automates preparing a simulation and processing results. It does not seem to interact with the simulation itself. I am aware of the labview softmotion option but it is a very substatial program with long learning curve.

Is there any way I can monitor / control a simulation from a more tradition programming language?

Sean Dalton

SolidworksMotion Studies