• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • AutoCAD Map 3D Developer

    Reply
    Distinguished Contributor
    Posts: 115
    Registered: ‎11-13-2006

    Workflow in Lisp

    191 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?

     

    Please use plain text.
    *Expert Elite*
    Murph
    Posts: 1,591
    Registered: ‎11-13-2006

    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.
    Please use plain text.
    Distinguished Contributor
    Posts: 115
    Registered: ‎11-13-2006

    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.

    Please use plain text.