Results 1 to 3 of 3

Thread: S::Startup ignores lisp "command" function

  1. #1
    Member
    Join Date
    2009-09
    Posts
    2
    Login to Give a bone
    0

    Default S::Startup ignores lisp "command" function

    Can anyone tell me why S::Startup runs every line of lisp code except for the code that starts with "command"?

    Below is my example:

    Code:
    (defun s::startup ()
     (COMMAND "undefine" "plot")
     (setq exp (getvar "expert"))
     (setvar "expert" 5)
     (setvar "filedia" 0)
     (COMMAND "-psetupin" (STRCAT plotdir "CFE Plotting Page Setup.dwt") "*")
     (setvar "expert" exp)
     (setvar "filedia" 1)
     (princ "\nStartup Loaded.")
    )
    Only the "setvars" and "setqs" execute, the "command" functions do not happen when a new drawing is started.

    Help anyone?
    Last edited by Opie; 2010-04-19 at 04:36 PM. Reason: [code] tags added

  2. #2
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: S::Startup ignores lisp "command" function

    That is not how you should be creating the S::Startup function. There have been several posts in the LISP forum regarding that function and how you should append to it.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  3. #3
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,804
    Login to Give a bone
    0

    Default Re: S::Startup ignores lisp "command" function

    Quote Originally Posted by RobertB View Post
    That is not how you should be creating the S::Startup function. There have been several posts in the LISP forum regarding that function and how you should append to it.
    ...and an example in the developers guide.
    R.K. McSwain | CAD Panacea |

Similar Threads

  1. Replies: 8
    Last Post: 2012-08-18, 01:31 AM
  2. Lisp and xp "shell" function
    By dwbrink in forum AutoLISP
    Replies: 7
    Last Post: 2008-10-30, 01:15 PM
  3. Command: "" Function confusion
    By johannvonspiralspine in forum AutoLISP
    Replies: 3
    Last Post: 2008-04-30, 02:20 PM
  4. Replies: 41
    Last Post: 2007-11-20, 12:32 AM
  5. Please explain how LISP function "cond" works
    By ccowgill in forum AutoLISP
    Replies: 11
    Last Post: 2006-11-18, 08:31 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
  •