Author Topic: How to get all namespaces inside AutoCad to List  (Read 2518 times)

0 Members and 1 Guest are viewing this topic.

d2010

  • Bull Frog
  • Posts: 323
How to get all namespaces inside AutoCad to List
« 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
« Last Edit: November 19, 2022, 12:30:00 AM by d2010 »

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8661
  • AKA Daniel
Re: How to get all namespace inside AutoCad to List
« Reply #1 on: November 18, 2022, 06:58:54 PM »
maybe use AppDomain.CurrentDomain?
or just use ILSpy