Skip to main content
15-Moonstone
Jun 13, 2017 1:49 PM UTC
Solved

Wait/Delay function?

Is there any type of wait/delay function to Pro Toolkit, or C for that matter?

I am having a situation (and I have in the past) where the dll processing seems to get ahead of the file writing creation routines.  And the dll processing can seemingly get ahead of video card regeneration.  I admit this is rare, but writing a lot to a loop, the program processing is moving forward.   We are talking nanoseconds here but when you are looping and retrieving and exporting, I have had the odd situation where just sometimes exports have been created  when drawing dimension have not snapped to snap lines if a parts size was modified and driven by top-down design.

The old Visual  Basic had do-events, and VB.net still has  Application.DoEvents. for just this reason.   IME sometimes with DLL's you just needed this to let different code strings catch up.

TomasLounAnswer
1-Visitor
Jun 14, 2017 12:28 PM UTC

No, there is no such a function and there is no need for it. You can use standard C functionality - see for example this: c++ - Sleep for milliseconds - Stack Overflow

2 replies

TomasLoun1-VisitorAnswer
1-Visitor
Jun 14, 2017 12:28 PM UTC

No, there is no such a function and there is no need for it. You can use standard C functionality - see for example this: c++ - Sleep for milliseconds - Stack Overflow

Translate
msteffke15-MoonstoneAuthor
15-Moonstone
Jun 14, 2017 2:36 PM UTC

Thanks Tomas, looks like just what I needed.   Its worth a try for me to see if this helps my situation.

Translate