Delaying loop
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-31
04:10 PM
- last edited on
2023-08-03
09:39 AM
by
Doreena Deng
2011-08-31
04:10 PM
Hello,
Im working on an add-on which runs a foor loop that finally run an external programm (autohotkey script).
My problem is that the actions the external program does take some time (2-3 seconds), and in the meanwhile the loop continues, what makes my add-on to get mad (!).
I tried to put a Sleep() function between each iteration, but this function delayed the whole Archicad Process (archicad stopped working).
Is there anyway Inside the API to delay the add-on only? like Sleep()?
THANKS!
Im working on an add-on which runs a foor loop that finally run an external programm (autohotkey script).
My problem is that the actions the external program does take some time (2-3 seconds), and in the meanwhile the loop continues, what makes my add-on to get mad (!).
I tried to put a Sleep() function between each iteration, but this function delayed the whole Archicad Process (archicad stopped working).
Is there anyway Inside the API to delay the add-on only? like Sleep()?
THANKS!
Labels:
- Labels:
-
Add-On (C++)
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-31 10:19 PM
2011-08-31
10:19 PM
zanzibar wrote:Unfortunately, no. Add-ons don't run on a separate thread, so ArchiCAD will always wait for the add-on to return before continuing.
Is there anyway Inside the API to delay the add-on only? like Sleep()?
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-31 11:20 PM
2011-08-31
11:20 PM
Well that's a bomber. Do you have any suggestion for me?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-31 11:23 PM
2011-08-31
11:23 PM
I forgot tho mention how important this project is to me.
I'll try to explain you what I'm trying to do: I'm trying to automate the process of exporting each floor to 3ds format. in the last thread I asked about that.
please give me a piece of advice I'm starring to loose hope.
I'll try to explain you what I'm trying to do: I'm trying to automate the process of exporting each floor to 3ds format. in the last thread I asked about that.
please give me a piece of advice I'm starring to loose hope.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-09-01 06:58 PM
2011-09-01
06:58 PM
anything?