Message 1 of 5
Dynamically Loaded Plugin Custom Tab Not Loading
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have one plugin that dynamically loads another via the below code. Both of these plugins have their own custom ribbon tabs. If I call the below code during the initialization of the first plugin both tabs show up fine. If I call the below code from a button in the first plugin's ribbon tab the second plugin's tab never shows up even though the second plugin is indeed loaded which I have verified via debugging and the AppInfo window of Navisworks.
Is there something that I have to do in order for Navisworks to "realize" that the dynamically loaded plugin has it's own custom tab?
PluginRecord record = Application.Plugins.FindPlugin(pluginNameString);
if (record != null)
{
if (!record.IsLoaded)
{
record.LoadPlugin();
}
}