←  Technical Questions

nanoCAD forum

»

How do I autoload.lisp files.

Kevin Wilkins's Photo Kevin Wilkins 24 Nov 2017

In Autocad, I write code into the acad.lsp or the acaddoc.lsp files, that

first checks to see if the code I want loaded can be found, then if yes, it automatically loads the lisp every time I open a drawing file.

Is there a nanocad.lsp file, that I can use with NanoCAD 5.0 ? I could not find one. How is this done ?

I tried, as per http://nanocadlisp.blogspot.ca/ , but the MENU - TOOLS - SCRIPTS and APPLICATIONS is gray'd out, and does not function on my installed version.
The NanaCAD comparison shows that LISP is a YES for 5.0.
see https://nanocad.com/page/Comparison

Is this LISP option in NanoCad 5.0 no longer functional ?

This following, is the code that I am looking to have NanoCAD read upon every drawing start up, then load the file.

So in what NanoCAD file do I add this code too ?

Oh... does NanoCAD support .fas files, or does this all need to be done in .lsp ?

;************************************************************************
; Autoload for DCCacad and main file dccdoc.fas
(setq filedcc nil)
(terpri)
(princ "\nNanoCAD will search for DCCacad...")
(setq filedcc (findfile "dccdoc.lsp"))

(if (= filedcc nil)
(progn
(princ "\nDCCacad was not found to loading!!!")
(princ "\nEnsure DCCacad SEARCHPATHS in 'OPTIONS' have been successfully added.")
)
)

(if (/= filedcc nil)
(progn
(terpri)
(princ "\nDCCacad was found and loading from ")
(terpri)(princ filedcc)(terpri)
(load "dccdoc.lsp")
(setq filedcc nil)
)
)
(princ)


Thanks
Kevin
Quote

Kevin Wilkins's Photo Kevin Wilkins 24 Nov 2017

Second to my questions above...

In AutoCAD, we have the ability under OPTIONS to expand the search files directories, by adding new search paths.

Under OPTIONS in NanoCAD, there does not seem to be the option to add additional directories as search paths.

Under OPTIONS - STANDARD DIRECTORIES the the ADD, MODIFY amd DELETE butons are also grey'd out, and non-functional.

How is this done in NanoCAD ?

I is this just no longer available in 5.0, and the comparison page is just out of date ?

Please advise.
Thanks
Kevin
Quote