Results 1 to 3 of 3

Thread: Time delaying between functions

  1. #1
    Member
    Join Date
    2012-07
    Posts
    3

    Default Time delaying between functions

    I'm trying to write a routine which uses time delays between commands but can't seem to figure it out...
    I want to repeat the commands as well after they go through a first time in a loop.

    Anyone have any suggestions i can try?

  2. #2
    Certified AUGI Addict rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Houston
    Posts
    7,543

    Default Re: Time delaying between functions

    Quote Originally Posted by benr226466 View Post
    I'm trying to write a routine which uses time delays between commands but can't seem to figure it out...
    I want to repeat the commands as well after they go through a first time in a loop.

    Anyone have any suggestions i can try?
    Example:

    Code:
    (defun c:foo ( / i)
      (setvar "cmdecho" 1)
      (setq i 1)
      (repeat 10   
       (princ (strcat "\ntest" (itoa i)))
       (vl-cmdf "._delay" 1000)
       (setq i (1+ i))
      )
    )

  3. #3
    I could stop if I wanted to pbejse's Avatar
    Join Date
    2010-10
    Posts
    415

    Default Re: Time delaying between functions

    Couple of Examples: Follow the bouncing ball

    http://www.cadtutor.net/forum/showth...highlight=ball

Similar Threads

  1. using autolisp functions
    By mdsalman2003 in forum AutoLISP
    Replies: 1
    Last Post: 2009-12-01, 04:27 AM
  2. If and functions...
    By awill81226338 in forum AutoLISP
    Replies: 3
    Last Post: 2009-08-18, 06:32 PM
  3. Wall Functions
    By Sweetshelby in forum Revit Architecture - General
    Replies: 6
    Last Post: 2006-02-08, 06:43 PM
  4. I don't always use Map Functions...
    By aharris in forum AutoCAD Map 3D - Wish List
    Replies: 8
    Last Post: 2004-07-29, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •