TheSwamp

Code Red => .NET => Topic started by: d2010 on November 18, 2022, 03:23:57 AM

Title: How to get all namespaces inside AutoCad to List
Post by: d2010 on November 18, 2022, 03:23:57 AM
Hello
My problem, is I need search
 = one namepace  with prefix Autocad(wcmatch "*Acad*")
 = two namespace external autocad
That reason
 a)very easy namespace_alltolist.exe with main function "list" all recoginzed "namespaces"
 b)I need .dll  with namespace_alltolist.dll.net with autoCad2010x86
Both versions .dll and .exe, because I need compare isInside BricsCad2021 & AutoCad2010.                     

Code: [Select]
var groups = assembly.GetTypes()
                     .Where(t => t.IsClass) // Only include classes
                     .GroupBy(t => t.Namespace);
foreach (var group in groups)
{
    Console.WriteLine("Namespace: {0}", group.Key);
    foreach (var type in group)
}
}
:evillaugh:
Visual Lisp 
(netload "alltolist.dll.net")
(setq alln (vla_get_alltolist ""))
-->          alln'( "Autobus.Loggers.Serilog 0.1.2", "AutoCad.Net.2008-JingBox 1.0.0", "AutoCAD-2008.X64.API.net 1.0.0" ," "AutoCAD-2009.Net.Interop.x64 1.0.3")
Thank you
Title: Re: How to get all namespace inside AutoCad to List
Post by: It's Alive! on November 18, 2022, 06:58:54 PM
maybe use AppDomain.CurrentDomain?
or just use ILSpy