Thank you Philosopher,
I'll have to study your code and implement the changes.
About the Acad types:
I need to extract from a Autocad plug-in the command names defined in it (if any). See topic "Is dll a AutoCAD plug-in?"
Also my answer there.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.