Where to find explanation of PAUSE command

I have an issue with the command "PAUSE" in plain LISP code.

Where can I find something about this command? (Or is it a build-in function?)

I would like to see , if any, parameters to be used with this command.

I have not been able to find any info the help, both online and offline.

Svend

Comments

  • Hi Svend,

    The PAUSE statement can be used anywhere in Lisp within a (command ....) function mostly when Bricscad is waiting for an input and you want to supply it directly via a mouse pick or keyboard entry. It is a bit crude or quick-and-dirty way to enter an input because you will not see any prompts or messages appearing on the screen, just a literal pause in operation and Bricsad waits for an input when it sees PAUSE.

    Some examples of usage of the PAUSE is when you want to dynamically drag, rotate and place something and then let the Lisp carry on with further operations.

    Example 1:

     (command "._Rotate" ename "" pt "_Reference" pt (polar pt 0.0 10.0) PAUSE)

    Here, you use PAUSE to specify the new angle relative to the existing direction (angle) specified by the Relative option.


    Example 2:

    (command "._Move" ename "" MidPt PAUSE)

    You move something from a known point to a new poitn which the use will now specify via PAUSE

    Example 3:

    (command "._Insert" retVal1 PAUSE XScl YScl RotAng)

    Here, we insert a known block with pre-determined Scale factors and Rotation angle but the insertion point is dynamically input via PAUSE.

    Hope this helps.

    BTW, I like PAUSE but don't overuse it. Many times, a proper error handler etc is better than using PAUSE.

    Regards
    Rakesh Rao
    Blog: http://rakeshrao.typepad.com

     

This discussion has been closed.