Skip to content
/ Alda Public

Autocad Lisp Debug Assistant (ALDA) allows fast autocad lisp development by automatic .lsp reloading with hierarchy referencing.

License

Notifications You must be signed in to change notification settings

Nucs/Alda

Repository files navigation

Alda

Autocad Lisp Debug Assistant (ALDA) allows fast autocad lisp development by automatic .lsp reloading with referencing support.

Features

  • Automatically reload selected directory/indvidual lisp files by detecting changes.
  • Reference other .lsp files and reload the entire reference hierarchy.

Requirements

Loading

  1. Download a release or compile it by yourself and then run the following command:
    (command "netload" "Alda.dll" )
    or pick the dll manually by calling netload.
  2. After loading the .Dll succesfully, you can now call lspdbg which will start the GUI.

Automatic load on startup

Create a lisp file, fill the following and add it to the Startup Suite.

(command "netload" "Alda.dll" )
(command "lspdbg" )

Note: There are settings to quicken the startup procedure such as "Load all lisp on startup" or "On debugger startup, start listening automatically".

Referencing

Lets say we have five files which are referenced in the following order:
In words; A references to C and B; C references to D and E; B references to E.
If it's still hard to undestand, replace the words "references to" to "uses".
Now what happens~: When A changes then only A will reload.
When C changes then C and A will reload (in that order).
When E changes then C, B and A will reload (in that order). When D changes then D, C and A will reload (in that order).

How to add a reference?

Syntax:

;#	C:/path/to/file.lsp
;#	C:/path/to/filetwo.lsp
or
;#	insidethesamefolder.lsp

It can be placed anywhere in the file, but for readability - keep it on top.
Also this causes any comment that starts by ;# to be a reference marker - so keep in mind to remove any comments with that format.

Referencing Requirement

In order for the reloader to identify all references and reload accordingly, they must be added to watch list.
If the .lsp file is listed, it will continue reloading what any files it knows about.

Upcoming Features

  • Lisp commands API to interact with the debugger from commandline/lisp files.
  • Hard Reloading Option - will require to have all references watched in order to reload.

License


MIT

About

Autocad Lisp Debug Assistant (ALDA) allows fast autocad lisp development by automatic .lsp reloading with hierarchy referencing.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages