Hi Rune,
Without your code, who could even guess?
But as a starter look for loops and think though the logic associated
with the loop and exiting from it.
Regards,
Laurie Comerford
Rune Aarnes wrote:
> Hi
>
> I have made a program that get a 3D section of solids and 3dface. The user
> can select a polyline, arc, spline..
>
> If the user select a polyline with many vertexes and also select many
> solids/3dface, this can take some time.
>
> I notise that after my program has loop through the objects maybe
> 30000-40000 times, I must wait 15-20 seconds
>
> unitil the use of CPU is drop down to under 10%. If I do some Autocad
> commands before that, I sometimes get FATAL ERROR
>
> Is it something wrong in my code or is it possible to find out when the cpu
> usage is low and then my program can wait..?
>
> Thanks
> Rune
>