Workflow in Lisp

Workflow in Lisp

cjneper
Advocate Advocate
840 Views
2 Replies
Message 1 of 3

Workflow in Lisp

cjneper
Advocate
Advocate

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?

 

0 Likes
841 Views
2 Replies
Replies (2)
Message 2 of 3

Murph_Map
Mentor
Mentor

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"

Murph
Supporting the troops daily.
0 Likes
Message 3 of 3

cjneper
Advocate
Advocate

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.

0 Likes