Community
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
Solved! Go to Solution.
Solved by makepeace1. Go to 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