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

Make Ribbon Dll Stay Loaded

1 REPLY 1
SOLVED
Reply
Message 1 of 2
makepeace1
668 Views, 1 Reply

Make Ribbon Dll Stay Loaded

I have created a Ribbon as a DLL and got it working but now i cant get it to stay loaded

 

I have tried adding to a lisp in the startup suite but it just crashes autocad

 

(command "netload" "C:\\Ribbon\\Ribbon.dll")

 

(command "Basic")
(command "Advanced")

 

is there anyway of getting it to load the ribbon when autocad starts ?

 

Thanks in advance

1 REPLY 1
Message 2 of 2
makepeace1
in reply to: makepeace1

Managed to get it to load on startup by adding the following

 

  Private Sub ComponentManager_ItemInitialized(sender As Object, e As RibbonItemEventArgs)
            
'now one Ribbon item is initialized, but the Ribbon control 'may not be available yet, so check if before If Autodesk.Windows.ComponentManager.Ribbon IsNot Nothing Then 'ok, Load Ribbon Basic() Advanced() 'and remove the event handler RemoveHandler Autodesk.Windows.ComponentManager.ItemInitialized, AddressOf ComponentManager_ItemInitialized End If End Sub

 

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