AutoCAD Map 3D Developer

AutoCAD Map 3D Developer

Reply
Distinguished Contributor
cjneper
Posts: 135
Registered: ‎11-13-2006
Message 1 of 3 (253 Views)

Workflow in Lisp

253 Views, 2 Replies
07-13-2012 12:07 PM

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?

 

*Expert Elite*
Murph
Posts: 2,086
Registered: ‎11-13-2006
Message 2 of 3 (249 Views)

Re: Workflow in Lisp

07-13-2012 03:05 PM 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
Supportting the troops daily.
Distinguished Contributor
cjneper
Posts: 135
Registered: ‎11-13-2006
Message 3 of 3 (228 Views)

Re: Workflow in Lisp

07-16-2012 09:29 AM in reply to: Murph

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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.