Manually Setting How the APS Software Loads
.
Architectural Production Software 2005

Note: There is now a command (APS-SETUP) that will perform the following steps for you with the push of a button. Unless you would like to place the APS load commands in a specific location in your .mnl or acad.lsp files we recommend you use this command.

Contents

 

Deciding how you will have the APS software load

There are two ways we recommend having the APS software load, you may either have it load with the menu LISP file (.MNL) for the menu file you use or to have it load in your ACAD.LSP file. If you typically use only one menu file when drawing then having the APS software load from a .MNL file is probably your best choice. If you use more than one menu file it may be better to have the software load in your ACAD.LSP file.

While these are the only two methods we recommend these are certainly not the only ways to load the software. The only real requirement to loading the software is that the APS-LOAD.LSP file is loaded. The loading of this LISP file takes care of all necessary preparation and loading of software to make the APS systems work.

When the APS software is installed it changes the default menu that you use to an APS menu. This menu has an .MNL file that loads the APS-LOAD.LSP file. As long as you use this new menu the APS software will continue to load correctly. If you do not want to use this new menu you will need to set it up so the software loads another way. If you want to use an .MNL file to load the APS software see "Loading the software from a menu LISP file (.MNL)", if not see "Loading the software from your ACAD.LSP file"

back2top

 

Loading the software from a menu LISP file (.MNL)

The menu LISP file is a file that will automatically load when a menu with it's same filename is loaded. For example if you had a menu called "basemenu.mnu" if a file with the name "basemenu.mnl" exists it will be loaded automatically.

The .MNL file is a file that is written in AutoLISP® and can contain any number of lisp expressions. Each of the menu files that are included with the APS software has an .MNL file that matches it's name.

Note: If you create a menu using the MENUBUILDER command a menu LISP file (.MNL) is automatically created for you that has the code to load the APS software already in it. Remember to always keep the .MNL file with the menu file (.MNU) so it will be loaded.

If you are not using one of the APS menu files or one you created with the MENUBUILDER command you will need to copy the section shown in red above to the .MNL file that is named the same as the menu you will be using (if you don't have an .MNL file the same name as your menu file see here).

The procedure for adding the code to load the APS software to your .MNL files is as follows:

1. Highlight the text in red below and select "Copy" from the "Edit" pull-down or press <Ctrl>C.

For AutoCAD releases 13 and 14:

;---------------------------------LOAD APS COMMANDS ---------------------------------------

(IF (FINDFILE "APS-LOAD.LSP")
    (LOAD (FINDFILE "APS-LOAD.LSP"))
    (ALERT "\nCould not locate \"APS-LOAD.LSP\".\n\nAPS files may need to be reinstalled.\n")
)

;---------------------------------END APS LOAD---------------------------------------------

For AutoCAD release 2000 and later:

;-------------------------LOAD APS COMMANDS -----------------------------------------------

(IF (SETQ APSLD_ (FINDFILE "APS-LOAD.FAS"))
    (LOAD APSLD_)
    (IF (SETQ APSLD_ (FINDFILE "APS-LOAD.LSP"))
        (LOAD APSLD_)
        (ALERT "\nCould not locate \"APS-LOAD.LSP\" file.\n\nAPS files may need to be           reinstalled.\n")
    )
)
(SETQ APSLD_ NIL)

;-------------------------END APS LOAD-----------------------------------------------------
 

2. Open the menu LISP file (.MNL) that has the same name as the menu file you will be using in an ASCII text editor (Notepad shown above).

 Then go down to the bottom of the file (dragging the slider on the right of the screen down to the bottom will get you there quickly)

 

3. Once down at the bottom click on a blank line below the last line of the existing code or at the end of the last line if there are no blank lines below it. You may press <Enter> to add blank lines as needed to give yourself some room.

Then right click and select "Paste" as shown above (you may also select "Paste" from the "Edit" pull-down if you prefer)

 

4. The "load" section for the APS software will appear at the bottom of your .MNL file.

 Now save the file (<Ctrl>S) and exit. The next time that your menu file is loaded the APS software will be loaded also.

 

 

Loading the software from your ACAD.LSP file

The procedure for adding the code needed to load the APS software from your ACAD.LSP file is the same as for the .MNL file above. The only difference is that you will be adding the text to the ACAD.LSP and ACADDOC.LSP files instead of an .MNL file.

Note:  The ACADDOC.LSP file is only needed in AutoCAD releases 2000 and later.

Not everyone has an ACAD.LSP / ACADDOC.LSP file so you may need to create them. If you do create them make sure that they are located somewhere in the AutoCAD path.

The procedure for adding the code to load the APS software to your ACAD.LSP and ACADDOC.LSP files is as follows:

1. Highlight the appropriate text in red below and select "Copy" from the "Edit" pull-down or press <Ctrl>C.

For AutoCAD releases 13 and 14:

;---------------------------------LOAD APS COMMANDS ---------------------------------------

(IF (FINDFILE "APS-LOAD.LSP")
    (LOAD (FINDFILE "APS-LOAD.LSP"))
    (ALERT "\nCould not locate \"APS-LOAD.LSP\".\n\nAPS files may need to be reinstalled.\n")
)

;---------------------------------END APS LOAD---------------------------------------------

For AutoCAD release 2000 and later:

;-------------------------LOAD APS COMMANDS -----------------------------------------------

(IF (SETQ APSLD_ (FINDFILE "APS-LOAD.FAS"))
    (LOAD APSLD_)
    (IF (SETQ APSLD_ (FINDFILE "APS-LOAD.LSP"))
        (LOAD APSLD_)
        (ALERT "\nCould not locate \"APS-LOAD.LSP\" file.\n\nAPS files may need to be           reinstalled.\n")
    )
)
(SETQ APSLD_ NIL)

;-------------------------END APS LOAD-----------------------------------------------------
 

2. Now open the ACAD.LSP file in an ASCII text editor (like Notepad).

3. Go to the bottom of the file and place the cursor 1 or 2 lines below the last line of the file. Add blank lines as necessary (by pressing <Enter>).

4. Select "Paste" from the "Edit" pull-down or press <Ctrl>V to add the text to the file.

5. Save the file ( <Ctrl>S ).

6. If you are using AutoCAD release 2000 or later repeat these steps for the ACADDOC.LSP file.

If you do not have either of these files you may open a blank document in your ASCII editor (like Notepad), add this code, and then save the file calling it ACAD.LSP / ACADDOC.LSP. Make sure to locate the file somewhere in the AutoCAD search path.

back2top

Is there anything that you find confusing or difficult? Please let us know so we can help!

© Copyright 2006 KLH Software, Inc. All rights reserved. Reproduction or copying of content or images is prohibited.
Legal Notices and Trademarks | Privacy Policy | Contact KLH Software
Autodesk, AutoCAD, AutoCAD Architectural Desktop, AutoLISP, and Visual LISP are either registered trademarks or trademarks of Autodesk, Inc., in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders.