AnsweredAssumed Answered

Controlling SW API from is slower than VBA?

Question asked by Karl-Gustav Johansson on Dec 2, 2009
Latest reply on Dec 13, 2009 by Karl-Gustav Johansson



I've created a program that can translate, rotate a part inside an assembly with help of VBA.

It works perfectly but when I tried exactly the same code in it runs much slower.


What happends in is that you can see all the buttons and the parts in the feature manager twinkling while the part rotates or translates.

If you just run the example "Rotate Assembly Component on Axis Example (VB)" for the function CreateTransformRotateAxis in you can see that all the control buttons gets gray during rotation. This is not the case when you use the same function CreateTransformRotateAxis in VBA.

The result is that if you call this function many times within the buttons will flicker from gray to normal colors and the program will run very slow. I've tried to run the same code through both command application and windows forms application with the same result.


I am using SW 2008 SP5 with Visual Basic 2008


Does anyone know any fix for this or is it a bug?


Please help