Results 1 to 5 of 5

Thread: Auto loading a LSP but not auto running it

  1. #1
    Active Member
    Join Date
    2006-11
    Location
    Auckland, New Zealand
    Posts
    92

    Default Auto loading a LSP but not auto running it

    I'm wanting to have a lisp routine automatically loaded for our users, but when I've placed it in the startup suite it autoruns upon opening autocad - which is causing major issues, as in AutoCAD won't complete it's startup. Is there anything I've done wrong, is it within the lisp that's caused the issue?

    All help greatly appreciated.
    Melanie Tristram
    Revit Manager - Jasmax Ltd - NZ

  2. #2
    AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL
    Posts
    1,099

    Default Re: Auto loading a LSP but not auto running it

    Probably within the lisp, some coders call the function at the end of a routine to make it a one step process to load and run a routine.
    (defun xyz ()
    (some code...)
    )
    (xyz)

    You could put a semicolin in front of the call to run the routine as in:
    (defun xyz ()
    (some code...)
    )
    ;(xyz)

    You could post the code and how you're loading it here if that doesn't help.
    Tom Beauford P.S.M. - Civil 2013 on Windows 7 Pro
    Design Analysis - Leon County Public Works/Engineering
    2280 Miccosukee Rd. Tallahassee, FL 32308-5310
    Ph# (850)606-1516

  3. #3
    AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    2,298

    Default Re: Auto loading a LSP but not auto running it

    And/Or maybe adding a defun c: (command to run it)?
    Code:
    (defun c:xyz ()
    (some code...)
    )
    ;;(xyz)
    command: xyz
    Ted
    ____________________________________________________________________________________
    AutoCAD 2012 - REVIT Structure 2012 - MicroStation V8i - Windows 7 Professional - (dabble with Inventor 2012)

  4. #4
    Active Member
    Join Date
    2006-11
    Location
    Auckland, New Zealand
    Posts
    92

    Default Re: Auto loading a LSP but not auto running it

    Ted & Tom,
    Thank you both for your replies - it was missing the semi-colon priof to the command run line

    (DEFUN C:PTL ()
    (Some code)
    )
    ;(C:PTL)
    Melanie Tristram
    Revit Manager - Jasmax Ltd - NZ

  5. #5
    Moderator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    2,401

    Default Re: Auto loading a LSP but not auto running it

    FWIW -

    I am not a fan of using the APPLOAD Startup Suite; instead I use Acad.lsp and AcadDoc.lsp respectively, where the latter loads a list of AUTOLOAD statements for all LISP routines that I want to demand load, rather than dumping each onto the memory stack at drawing open. Faster load times, with all functionality available. Lemon squeezy.
    "Potential has a shelf life." - Margaret Atwood

Similar Threads

  1. mditabs 18 not auto loading
    By Liamnacuac in forum CAD Management - General
    Replies: 2
    Last Post: 2009-12-18, 11:13 PM
  2. auto running lisp
    By PHOTOS4ME in forum AutoLISP
    Replies: 3
    Last Post: 2009-07-31, 07:21 PM
  3. Loading Auto Cad Lite 2000
    By frank1737 in forum CAD Management - General
    Replies: 1
    Last Post: 2007-12-01, 04:00 PM
  4. Auto Loading MNS files
    By Nick.Nemechek in forum AutoCAD Customization
    Replies: 2
    Last Post: 2004-11-17, 03:33 PM
  5. Auto running a command.
    By bobr.71433 in forum AutoCAD Customization
    Replies: 2
    Last Post: 2004-07-10, 01:59 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
  •