.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problème with AutoCAD 2009 .Net DLL Autoload

4 REPLIES 4
Reply
Message 1 of 5
wperaud
744 Views, 4 Replies

Problème with AutoCAD 2009 .Net DLL Autoload

Hi,

I would like my .net DLL to be Autoloaded at Autocad 2009 startup.

I followed this solution, http://through-the-interface.typepad.com/through_the_interface/2006/09/automatic_loadi.html ,
but nothing happens when I start Autocad.

I joined my registry key, as text.

Could someone help me please ?

Thank you.
4 REPLIES 4
Message 2 of 5
_gile
in reply to: wperaud

Salut,

Regarde ici :
http://www.acadlabs.com/viewtopic.php?f=18&t=44


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 5
wperaud
in reply to: wperaud

I made a few tests, when there are keys in the registry
- Netload doesn't LOAD my DLL
- AutoCAD close with a error

So, I add, into the loaded class, a messageBox at the beggining of the public void Initialize() method.
As this messageBox is show at AutoCAD startup, It shows that the DLL is auto-loaded 🙂

But, the loading stops when using some AutoCAD Object, such as :
{code}RibbonPaletteSet paletteSet = Autodesk.AutoCAD.Ribbon.RibbonServices.RibbonPaletteSet;{code}
{code}Autodesk.AutoCAD.Ribbon.RibbonServices.RibbonPaletteSet.RibbonControl.Tabs.Add(tab);{code}

The only thing I need, is a custom tab being loaded at Autocad 2009 startup.( tab defined by the code, thanks to a Ressource Dictionnary)
The object that make my load stops is, as we can see into the code, Autodesk.AutoCAD.Ribbon.RibbonServices.RibbonPaletteSet.

Has someone any idée ?
Message 4 of 5
wperaud
in reply to: wperaud

I found a solution :

In the Initialise() method, i add an EventHandler :

{code}
Autodesk.AutoCAD.Ribbon.RibbonServices.RibbonPaletteSetCreated += new EventHandler(RibbonServices_RibbonPaletteSetCreated);
{code}

Now, I just can add all my actions in the following method :
{code}
void RibbonServices_RibbonPaletteSetCreated(object sender, EventArgs e)
{
Autodesk.AutoCAD.Ribbon.RibbonServices.RibbonPaletteSet.RibbonControl.Tabs.Add(tab);
}
{code}
Message 5 of 5
mamj
in reply to: wperaud

I followed the instruction to, and had the same result.
I fixed it by replacing the double slash in the LOADER string...

C:\\Release\\ACADProject.dll became C:\Release\ACADProject.dll

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost