0 Replies Latest reply on Mar 25, 2016 9:13 AM by Alan Thomason

    Variables in Motion VBA

    Alan Thomason

      In order to improve the capabilities of Motion, I have been learning from the following example:

      2016 SOLIDWORKS API Help - Fire Events for External Output Time Step Changes Example (VBA)

       

      This is very helpful in that I can now modify motor parameters within the code based on time.   I have noticed that using this method takes much more time and restarts the simulation at every step.

       

      Above is using Motion without externally modifying the rotation position of the part, below is using the VBA

      script to start the simulation and calculate the position of the wheel.  It takes more than twice as long and restarts

      the simulation at each step.

       

      Does anyone know if there is a way to prevent restarting the simulation?  Also, any other tips and tricks to

      speed up simulations?

       

      Thanks,

      Alan Thomason