.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Collection of loaded .Net applicatio ns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Is there a collection object where I can iterate through loaded .net applications? Also, is there a programatic way to load .net apps from within another application? I would Like to use the registry to auto-load an initial app that then manages and loads other .net toolsets.
Thanks for any help in advance.
Solved! Go to Solution.
Re: Collection of loaded .Net applicatio ns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
You can load .NET DLL into AutoCAD with Syste,ReflectionAssembly.Load()/LoadFrom(). It does the same thing just as you load them by NETLOAD command in AutoCAD.
Re: Collection of loaded .Net applicatio ns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
You can get the loaded .NET assemblies with the code below:
>>>
[CommandMethod("ListLoadedApplication")]
public void CmdListLoadedAssemblies()
{
Document doc = Application.DocumentManager.MdiActiveDocument;
Editor ed = doc.Editor;
//get all loaded assemblies in the current appdomain
System.Reflection.Assembly[] assemblies = System.AppDomain.CurrentDomain.GetAssemblies();
foreach (System.Reflection.Assembly assembly in assemblies)
{
//let's remove built-in .NET assemblies
if (!assembly.Location.ToLower().Contains("windows"))
{
ed.WriteMessage(assembly.Location + "\n");
}
}
}
<<<
Regards,
Augusto Goncalves
Autodesk Developer Network
Re: Collection of loaded .Net applicatio ns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks for posting. I appreciate your help.
