I am trying to run a workflow within a lisp program.
I am using a command function such as:
(command "mapworkflowbatchrun" "myfile")
And then I have some other commands after that. The problem is the lisp program skips ahead to the other autocad commands before the workflow is finished running. How do I get the program to complete the above command to run the workflow, before moving on to the next lines in the program?
I would break the lip into two defuns. with the second being called inside the workflow afer everything else is done.
EX:
(Defun part1 ()
(command "mapworkflowbatchrun" "myfile")
)
(Defun part2 ( )
Do the rest of lisp
)
Then in the workflow add the function/command "part2"
Thanks for the suggestion. I tried breaking up the program into subprograms like you said, but lisp still wants to jump ahead to the subroutines before completing the workflow.
Lisp does not like workflows apparently.