Code Red > .NET

How to get all namespaces inside AutoCad to List

(1/1)

d2010:
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: ---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)
}
}
--- End code ---
: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

beck's bolero:
maybe use AppDomain.CurrentDomain?
or just use ILSpy

Navigation

[0] Message Index

Go to full version