Jump to content

Recommended Posts

Posted

Hi,

 

How to get a list of loaded lisp or applications from AutoCAD.

 

Which is shown in belowed image

1.JPG

 

Thanks in advance

Posted

@SLW210 - I tried Command - LSP , it is providing information about commands, variables & functions only.... It doesn't give info about loaded lisp files....

Posted

@Lee Mac Sir - That seems to be a good option, i'll look into that......Thank you

Posted

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?

Posted

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.

Posted
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

Posted

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.

Posted

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.........

Posted

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.

Posted

Noted LM Sir....

thanks for the code:thumbsup:

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...