Help with running multiple macros
I have this function that runs a bunch of macros simultaneously. For some reason when I run each one individually, 1 by 1, they all work fine but when I run this code the "fixtrees" macro doesnt execute properly. I was thinking maybe I need to add a delay between each one maybe? Any other ideas would be much appreciated. The code:
; macro that runs all necessary jobs with one function
(defun c:startjob ()
(command "._fixblocks") ; Fixes all block settings specified in that file
(command "._fixunits") ; Fixes all unit settings specified in that file
(princ "\nBlocks updated.")
(princ "\nUnits updated.")
(princ "\nAll macros successfully started.")
(princ "\nReady to begin!")
)
(princ "\nType 'startjob' to run all macros.")
Comments
-
Hello.
You could test with adding a "pause" after each call of the (command) function.
This would ensure that the command finishes before the next line of code is executed.The "pause" could be something like:
(while (/= 0 (getvar 'cmdactive)) (command pause))0 -
The pause simple (alert "at step1"), (alert "at step 2") and so on. Sometimes have like 5 steps trying to find a bug.
0