satishrajdev Posted November 12, 2013 Posted November 12, 2013 Hi, How to get a list of loaded lisp or applications from AutoCAD. Which is shown in belowed image Thanks in advance Quote
SLW210 Posted November 12, 2013 Posted November 12, 2013 Have you looked at the Express Tool LSP.lsp? Quote
Lee Mac Posted November 12, 2013 Posted November 12, 2013 I'm not sure that this list is accessible from AutoLISP, but DOSlib offers a dos_lisplist function. Quote
satishrajdev Posted November 13, 2013 Author Posted November 13, 2013 @SLW210 - I tried Command - LSP , it is providing information about commands, variables & functions only.... It doesn't give info about loaded lisp files.... Quote
satishrajdev Posted November 13, 2013 Author Posted November 13, 2013 @Lee Mac Sir - That seems to be a good option, i'll look into that......Thank you Quote
ReMark Posted November 13, 2013 Posted November 13, 2013 LSP will report back what lisp routines are loaded. If you don't have any custom lisp programs loaded then the list you see is primarily every lisp routine that comes with basic AutoCAD. You did test this didn't you? Quote
MSasu Posted November 13, 2013 Posted November 13, 2013 ReMark, I'm afraid that LSP Express command will only list the symbols (functions and variables) currently defined into drawing's namespace. The OP was looking to find the paths from where those were loaded. Quote
SLW210 Posted November 13, 2013 Posted November 13, 2013 Hi, How to get a list of loaded lisp or applications from AutoCAD. Which is shown in belowed image Thanks in advance I do not see where he asked for the file path. I do believe there used to be a program floating around called Atoms or similar. HERE YOU GO Here is a similar thread at Autodesk. Loaded LISP Files Quote
MSasu Posted November 14, 2013 Posted November 14, 2013 Satish, can you please clarify what you were looking for exactly? Symbols (functions and variables) existing in current drawing's namespace - check ATOMS-FAMILY function. The name of the files from where those were loaded - check DOS_LISPLIST (require DosLib third-part library) and ARX functions. The path for the above files - may try to scan paths from Support File Search Path and content of acad/acaddoc.lsp for file names from above found list; not sure what to do for manually loaded ones. Quote
satishrajdev Posted November 15, 2013 Author Posted November 15, 2013 Sorry Guys.... I was on leave so couldn't able to reply here. Actually I want path of my loaded lisp, but i thought if i get a list of loaded lisps then i can get path of my lisp.... I asked this question in wronge manner, I had to ask directly "how to get a path of particular loaded lisp". I have gone through ATOMS-FAMILY functions only provides name of loaded lisp but not path.... and DOS_LISPLIST is also a good function.... But, i got one lisp on CADTutor, which is given below - (defun MT-Get-Last-Appload-Folder (/ acad CurVer1 CurVer2 CurProf RegPath folder) (setq acad "HKEY_CURRENT_USER\\software\\Autodesk\\AutoCAD\\") (setq CurVer1 (strcat (vl-registry-read acad "CurVer") "\\")) (setq CurVer2 (vl-registry-read (strcat acad "\\" CurVer1) "CurVer")) (setq acad (strcat acad CurVer1 CurVer2)) (setq CurProf (vl-registry-read (strcat acad "\\Profiles") "")) (setq RegPath (strcat acad "\\Profiles\\" CurProf "\\Dialogs\\Appload")) (setq folder (vl-registry-read RegPath "MainDialog")) ) And this lisp works me perfectly......... Quote
Lee Mac Posted November 15, 2013 Posted November 15, 2013 That code could be condensed substantially... (defun appload-folder ( ) (vl-registry-read (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (getvar 'cprofile) "\\Dialogs\\Appload" ) "MainDialog" ) ) However, note that the code is only returning the path of the last folder from which a program file was loaded, and not a list of loaded program files as you requested. Quote
satishrajdev Posted November 15, 2013 Author Posted November 15, 2013 Noted LM Sir.... thanks for the code:thumbsup: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.