List of loaded assemblies

List of loaded assemblies

Anonymous
Not applicable
1,016 Views
3 Replies
Message 1 of 4

List of loaded assemblies

Anonymous
Not applicable
APPLOAD shows the files that are currently loaded and where they are located. Is there a was to access the names of loaded .NET dlls and their location?
0 Likes
1,017 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
AppDomain.CurrentDomain.GetAssemblies();

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:[email protected]...
APPLOAD shows the files that are currently loaded and where they are located. Is there a was to access the names of loaded .NET dlls and their location?
0 Likes
Message 3 of 4

Anonymous
Not applicable
And with a little help from System.Reflection, you can scan each assembly for methods using the CommandMethodAttribute to get the command(s) it is exposing to AutoCAD...
0 Likes
Message 4 of 4

Anonymous
Not applicable
but not with lisp right?
I care because my key-ins routine is lisp. It creates two letter commands for various routines.
I can test for lisp functions, arx's loaded, dvb, vlx, lots of things, but not .net assemblies it seems.

It does not seem to matter too much as you can double load a .dll with no issues.
so my key-in might be:
(DEFUN C:CCM () (princ "\nChange layer properties Modeless")
(setvar "cmdecho" 0)
(COMMAND "netload" "ChlayCoLtNetR16.dll")(command "Chlaycolt") <-- runs load command every time before running
(princ)
)

where as with lisp, I only load it if needed:
(if (not c:chlaycolt)(load "chlaycoltr16.lsp")) then run...(c:chlaycolt)

It seems that loading a .net assembly every time you run it is fine as the load statement gets ignored if already
loaded.

Tony Tanzillo
|>AppDomain.CurrentDomain.GetAssemblies();
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom
0 Likes