I'm writing a vba-program in acad2000.
because the divide command is not supported in vba its possibble to use the sendcommand method.
however this leads to the following problem. Autocad does not process these commands until it has finished the vba program, leading to unwanted results.
(it does work when the program is run from the vba editor, but not when i run it with tools-macros-macro ...run)
i've tried the acadstate property but acad is busy until the program is done. no-luck here
iv'e also tried to wait for the endcommand event but running the macro is actually the command "vbarun" so there was no event until the program stopped.
What i'm going to try now is to cut my program in several parts and run them from a program that controls a timer and checks if acadstate is quiescent before running the next part. I feel this not to be a proper way. If anyone has a better idee to deal with this please let me know
regards Kris
because the divide command is not supported in vba its possibble to use the sendcommand method.
however this leads to the following problem. Autocad does not process these commands until it has finished the vba program, leading to unwanted results.
(it does work when the program is run from the vba editor, but not when i run it with tools-macros-macro ...run)
i've tried the acadstate property but acad is busy until the program is done. no-luck here
iv'e also tried to wait for the endcommand event but running the macro is actually the command "vbarun" so there was no event until the program stopped.
What i'm going to try now is to cut my program in several parts and run them from a program that controls a timer and checks if acadstate is quiescent before running the next part. I feel this not to be a proper way. If anyone has a better idee to deal with this please let me know
regards Kris