Results 1 to 5 of 5

Thread: zz_dist ADT 2007

  1. #1
    Active Member
    Join Date
    2007-03
    Posts
    65

    Default zz_dist ADT 2007

    Migrating Lisp routines to 2007 from 2004 and I can't seem to figure this one out. It returns "no function definition: ZZ_DIST. I can't find reference to this function ANYWHERE....Help
    Please review the following code:

    Code:
    (defun c:cc ( / bgroup temp ang dist ent)
      (setvar "cmdecho" 0)
      (setvar "SAVETIME" 20)
      (prompt "\nMacro: Continuous Copy\n")
      (setq bgroup (ssget))
      (setq ang (getreal "\nAngle for copy: "))
      (setq ang (* pi (/ ang 180.0)))
      (setq dist (getdist "\nDistance to copy: "))
      (setq temp (strcat "@" (rtos dist 2 6) "<" (angtos ang 2 2)))
      
      (while (/= temp "Exit") 
        (setq ent (entlast))
        (command "_.copy" bgroup "" "0,0" temp) 
        (setq temp (zz_dist "PP" 4 1 "Exit" "Distance to copy" dist nil))
        (if (and temp 
              (/= temp "Exit")
            ) 
          (setq dist temp)
        ) 
        (if (/= temp "Exit") 
          (progn
            (setq temp (strcat "@" (rtos dist 2 6) "<" (angtos ang 0 4)) 
                  bgroup (ssadd))
            (while (setq ent (entnext ent))
              (if ent 
                (setq bgroup (ssadd ent bgroup))
              )
            )
          )
        )
      )
      (princ)
    )
    Thanks
    Chris
    Last edited by Opie; 2007-07-26 at 04:58 PM. Reason: [CODE] tags added

  2. #2
    AUGI Addict
    Join Date
    2006-12
    Posts
    1,520

    Default Re: zz_dist ADT 2007

    (setq temp (zz_dist "PP" 4 1 "Exit" "Distance to copy" dist nil))

    Inside the while-loop.
    If you are going to fly by the seat of your pants, expect friction burns.
    Windows XP is now over 10 years old, in software terms it makes Joan Collins look like the new kid on the block. - Statler
    Everyone else being wrong is not the same thing as being right.

  3. #3
    AUGI Addict .T.'s Avatar
    Join Date
    2000-12
    Location
    Lost
    Posts
    1,473

    Default Re: zz_dist ADT 2007

    Quote Originally Posted by ccaron
    Migrating Lisp routines to 2007 from 2004 and I can't seem to figure this one out. It returns "no function definition: ZZ_DIST. I can't find reference to this function ANYWHERE....Help
    Please review the following code:
    ~snip~
    ~snip~
    Thanks
    Chris
    Hi Chris,

    I think zz_dist is a function included with Land Desktop. If you still have them, maybe you can get the function from the original LDD disks.

    HTH
    Tim Creary
    S&D
    DILLIGAF

  4. #4
    Active Member
    Join Date
    2007-03
    Posts
    65

    Default Re: zz_dist ADT 2007

    Quote Originally Posted by dgorsman
    (setq temp (zz_dist "PP" 4 1 "Exit" "Distance to copy" dist nil))

    Inside the while-loop.
    thanks, that was helpful....

    No, I meant I can find reference to it ON THE INTERNET.....

    Obviously they removed it since ADT 2004 and I can't find a replacement.

    C
    Last edited by ccaron; 2007-08-06 at 02:42 PM.

  5. #5
    Active Member
    Join Date
    2007-03
    Posts
    65

    Default Re: zz_dist ADT 2007

    Quote Originally Posted by timcreary
    Hi Chris,

    I think zz_dist is a function included with Land Desktop. If you still have them, maybe you can get the function from the original LDD disks.

    HTH
    I'm not sure where this code came from originally. It could have be migrated from R14 and Softdesk. Worked fine in ADT 2004, but not in 2007.

    Thanks anyway.

    C

Similar Threads

  1. Unable to open regular AutoCAD 2007 from Mechanical 2007
    By irchrismm in forum AutoCAD General
    Replies: 2
    Last Post: 2010-07-15, 08:05 PM
  2. Replies: 9
    Last Post: 2007-03-05, 08:41 PM
  3. Seminar For ADT 2007 & AutoCAD & Viz 2007 by FOCUS Kuwait
    By Binu Mathew in forum Local User Groups - General
    Replies: 0
    Last Post: 2007-03-02, 10:28 AM
  4. ADT 2007 - Set up standard AutoCAD 2007 user interface
    By geoffrey.eroe in forum ACA General
    Replies: 5
    Last Post: 2006-11-27, 04:56 AM
  5. AutoCAD 2007 and LT 2007 - Custom menus load randomly...
    By robdg in forum AutoCAD CUI Menus
    Replies: 2
    Last Post: 2006-11-17, 02:57 AM

Posting Permissions

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