Make Ribbon Dll Stay Loaded

Make Ribbon Dll Stay Loaded

Anonymous
Not applicable
896 Views
1 Reply
Message 1 of 2

Make Ribbon Dll Stay Loaded

Anonymous
Not applicable

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

0 Likes
Accepted solutions (1)
897 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

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

 

0 Likes