Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
At the moment I am loading my palette in the AutoCAD Initialize routine but I don't necessarily want it loaded if the Palette was closed in a previous instance of AutoCAD. So I'm guessing I must remove it from the AutoCAD startup:
Public Sub Initialize() Implements IExtensionApplication.Initialize
Dim pal = New PaletteClass()
pal.LoadPalette()
End SubFrom what I understand it gets assigned a GUID which tells AutoCAD if it should be reloaded or not on the next instance. How can I tell if it has or hasn't been loaded so that I can bypass any code interaction with a palette that may not be there?
Solved! Go to Solution.