fbpx
M
The Power of ACADDOC.lsp in a Corporate Environment

Did you know there is one file that you can use in Autodesk AutoCAD and/or Civil 3D’s APPLOAD to control system variables and loaded lisp routines?

Using ACADDOC.lsp provides a quick and easy way to control system variables and available corporate lisp routines across your entire network!

Using your favorite text editor (I prefer Notepad++), copy and paste the following code into a blank document:

;; XYZ Corporation ACADDOC.lsp APPLOAD file

;; This is the only lisp routine needed inside of AutoCAD or Civil 3D’s APPLOAD Starup Suite

;; The XYZ-START lisp routine loads all of the corporate lisp routines, system variables, and commands

 

(defun C:XYZ-START ()

                (load “C:/LISPROUTINES/XYZ-START”) ;Set this to mapped network location

                (prompt “\nXYZ-START loaded”)

                (princ)(c:XYZ-START)

)

(LOAD “XYZ-START”);

 

(princ)

 

(SETVAR “CMDECHO” 0) ;Set this to 0 first so that the following commands aren’t shown in the command line

 

(SETVAR “ACADLSPASDOC” 1) ;Controls whether lisp is loaded for each drawing.

(SETVAR “STARTMODE” 0) ;Turns off the Start tab

(SETVAR “MENUBAR” 1) ;Turns on the menubar above the ribbon

 

(COMMAND “DISPLAYVIEWCUBEIN2D” “OFF”);Turns the view cube off

(COMMAND “NAVBAR” “OFF”) ;Turns the navigation bar off

(COMMAND “XREFLAYER” “C-XREF LAYER NAME”) ;Sets the default layer that XREF’s come in on (New variable that was introduced in 2018)

(COMMAND “LOGFILEMODE” “0”) ;Turns off the logging of all commands to a text file in My Documents folder

 

(princ)

Modify the file path under load to your corporate mapped drive and save this file as ACADDOC.lsp
Open a new blank drawing in your preferred text editor and paste the following code.

;; XYZ Corporation XYZ-START.lsp Lisp Routine file list

 

(defun C:TW       () (load “C:/LISPROUTINES/TW”)

                (prompt “\nTwist View loaded”)(princ)(c:TW))

(defun C:TWIST    () (load “C:/LISPROUTINES/TW”)

                (prompt “\nTwist View loaded”)(princ)(c:TW))

(defun C:UT       () (load “C:/LISPROUTINES/UNTWIST”)

                (prompt “\nUnTwist View loaded”)(princ)(c:UnTwist))

(defun C:UNTWIST  () (load “C:/LISPROUTINES/UNTWIST”)

                (prompt “\nUnTwist View loaded”)(princ)(c:UnTwist))

 

(princ)

(prompt “\nXYZ Lisp Routines Loaded”)

(princ)

This will work as starter code to modify for your corporate lisp routines.

After (defun C: type in the AutoCAD command to load the lisp routine.

Change load to point to your corporate mapped drive and the lisp routine you are loading.

After (princ) (c: type in the name of the lisp routine that you are loading

*Pro tip* – This example shows two lisp routines that can run by typing two different AutoCAD commands.

Save this file as XYZ-START.lsp.

Type APPLOAD in your command line.

Click on Contents in the bottom right under Startup Suite.

If you have a fresh install, this box will be empty. Click Add and load your custom ACADDOC.lsp.

The Startup Suite should now look like this with your custom ACADDOC.lsp. Click Close.

Your AutoCAD or Civil3D is now setup to load ACADDOC.lsp and XYZ-START.lsp from a network mapped drive.
The CAD manager or network administrator can easily modify these lisp routine files to load new system variables, commands, or lisp routines.

*Note* Each time AutoCAD or Civil3D opens a drawing, the ACADDOC.lsp will load because of (SETVAR “ACADLSPASDOC” 1) in ACADDOC.lsp. This is allows each AutoCAD or Civil3D to automatically reload ACADDOC.lsp and XYZ-START.lsp. AutoCAD or Civil3D only need to open a new drawing to reload these files.

Stay Connected

Follow ATG for 24/7 access to top-notch technical content:

Have questions? Don't hesitate to reach out!

Contact Us

Newsletter

Insights

Events | See All

Workflows & Solutions | See All

News  | See All

Our Latest
Success Stories

See All

 

Success Story - TKDA - CAD Support and Management, Delivered

CAD Support and Management, Delivered – TKDA

Customer ChallengeTKDA is full-service engineering, architecture and planning firm with over 300 employees across the country. The main challenge TKDA faced involved multiple divisions within the company. These divisions had...
Powering Business Success with ATG and Moyer Design and Build

Powering Business Success with ATG — Moyer Design

Customer ChallengeMoyer Design + Build is a small firm that designs and builds custom residential homes from start to finish. Due to team capacity and workload, it was difficult to keep up with technical work. Moyer Design...
Global eTraining: Employee Training on an As-Needed Basis — JL Thompson Design

Global eTraining: Employee Training on an As-Needed Basis — JL Thompson Design

Customer ChallengeJ.L. Thompson Design is a residential design firm that creates custom house plans and 3D designs using Revit and Enscape. As a small firm, sending employees for training was not an option to maintain production...
Crossroad Engineers Success Story + BIMBOX

BIMBOX: Hardware Solution with Unique Capabilities — CrossRoad Engineers

Customer Challenge: Software PerformanceCrossRoad Engineers was established in 1995 with a goal to create a family-oriented business rather than a large corporate firm. Exclusively in Indiana, they specialize in transportation,...
Success Story: BIMBOX, Clancy & Theys Construction

BIMBOX: Clearing the Path for Better Workflows — Clancy & Theys

Customer ChallengeClancy & Theys Construction is a nationally-recognized regional contractor with a broad spectrum of project types across all offices. After learning about BIMBOX at Autodesk University, Clancy & Theys...
Building Confidence Through Revit Template Creation blog image

Architectural Production Services: Building Team Confidence with Revit Template Creation – Rottet Studio

Customer ChallengeRottet Studio is a leading international architecture and interior design firm that offers many services, including renovation, building and interior design, landscaping and more. Michael Au, Associate...
Providing Solutions To Grow A Long-Standing Partnership blog image

Technical Support: Providing Solutions to Grow a Long-Standing Relationship – Butler Design Group

Customer ChallengeButler Design Group is an architectural firm in Phoenix, AZ dedicated to creating design solutions for their client’s functional, aesthetic and budgetary needs. Through partnership with ATG, BDG realized the...
Accelerate Workflow Success Story | ATG + Tyson

Dynamo Training: Eliminating Repetitive Tasks to Accelerate Workflows – Tyson

Customer ChallengeTyson Foods, Inc., based in Springdale, Arkansas, was founded in 1935 with a goal to deliver quality chicken and build strong relationships with independent farms across America. The drafting team at Tyson...
Success Story: BIMBOX

BIMBOX: Groundbreaking ROI – Faith Technologies

Success Story Overview Formerly known as Collaboration for Revit or C4R, BIM360 Design allows multiple stakeholders to contribute to a central model, or aggregation of models, in the cloud. Many people experience poor...
ATG Success Story Production Services

Production Services: Increasing Productivity in a High-Pressure Environment – JB Henderson Construction

Overview JB Henderson Construction, Inc., commemorated its 60th year in business in May 2019. Based in Albuquerque, the company has an extensive list of customers including national laboratories, universities, hospitals, and...