SupportsControls does not work

By Xiaodong Liang

Issue

As I understand, any plug-in will be the PluginRecord in the plug-in collection of Navisworks. They are visible in Navisworks. And Options = PluginOptions.SupportsControls will make the plug-in visible to an application of .NET control. One sample code (topic PluginRecord Class) demos how to iterate the plug-ins in a control application. However the collection always returned 0 items when I tested with a .NET control application, even though I have set one of my plug-ins with SupportsControls.

Solution

Currently .NET API does not support loading plug-ins within control based solutions, so the flag SupportsControls is  for now


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading