Land F/X
  • Portal
  • Products
    • Design F/X
    • Planting F/X
    • Irrigation F/X
    • F/X CAD
    • Plugin for Revit®
    • Plugin for SketchUp®
    • Lighting
    • Plugin for Rhino®
    • Manufacturer Connection
    • Academic
  • Support
  • Videos
  • Who We Are
  • Trial
  • Purchase
Land F/X
  • Portal
    • Dashboard
    • Account
    • Licenses
    • Data
    • Support
  • Products
    • Design F/X
      • Product
      • Features
      • Trial
      • Purchase
    • Planting F/X
      • Product
      • Features
      • Trial
      • Purchase
    • Irrigation F/X
      • Product
      • Features
      • Trial
      • Purchase
    • F/X CAD
    • Plugin for Revit®
    • Plugin for SketchUp®
    • Plugin for Rhino®
    • Site & Hardscape
    • Lighting
    • Manufacturer Connection
    • Academic
    • Purchase
  • Support
    • Knowledge Base
    • Documentation
    • Submit Ticket
    • Updates
    • Forum
    • Install
    • Remote Assistance
  • Videos
    • Power Tips
    • Webinars
  • Who We Are
    • Contact Us
    • Careers
    • Gallery
    • News
  1. Knowledge Base
  2. Installation Troubleshooting & Errors
  3. Installing Land F/X: Info & Troubleshooting
  4. Your Custom AutoLISP Routines are Not Loading After Installing Land F/X

Your Custom AutoLISP Routines are Not Loading After Installing Land F/X

Issue

After installing a Land F/X plugin, you're finding that your custom AutoLISP routines or scripts are not loading

 

Cause

This issue is likely occuring because your office incorrectly refined the S::Startup function using defun.

 

Solution

When refining the S::Startup function, take care to add to it via defun-q. For example, your current code may look like this:

 

(defun S::STARTUP ()
….
) ; S::STARTUP
 
 
 
 
... when it needs to be:
 
(defun-q MY_STARTUP ()
; note, declaring local variables is not allowed within a defun-q
(setq clayer (getvar “CLAYER”)) ; example “local” variable
…
 ; set all “local” variables to nil
(setq clayer nil)
) ; MY_STARTUP
 
(if (and S::STARTUP (vl-consp S::STARTUP)) ; then add it
 ; but not if already there
(if (not (member (last MY_STARTUP) S::STARTUP))
(setq S::STARTUP (append S::STARTUP MY_STARTUP))
) ; if
 ; otherwise, start fresh
(setq S::STARTUP MY_STARTUP) ; in this fashion, it can be added to with other startup functions
) ; if

It's also a LISP best practice to avoid having a customization file named acad.lsp. Instead, name your customization file after your firm's name or initials, which will identify it as your firm's cutomization file. For example, if your firm is called Billy Bob Landscape Architecture, you can name your customization file BBLA.lsp. Then make sure the code is intended as in the example above.

Contact

  • Land F/X
  • PMB 351
    3940 Broad St. STE 7
    San Luis Obispo, CA 93401
  • +1 805-541-1003
Email Logo Facebook Logo Instagram Logo LinkedIn Logo
Land F/X Logo

Our software tailors AutoCAD®, Revit®, and SketchUp® to the needs of landscape architects, irrigation designers, and other professionals. We automate your most tedious tasks and ensure accuracy, giving you more time to design.

  • Portal
  • Products
  • Support
  • Videos
  • Who We Are