AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Workflow in Lisp

2 REPLIES 2
Reply
Message 1 of 3
cjneper
471 Views, 2 Replies

Workflow in Lisp

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?

 

2 REPLIES 2
Message 2 of 3
Murph_Map
in reply to: cjneper

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.
Message 3 of 3
cjneper
in reply to: Murph_Map

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost