We’re using Rhino Conveyor in Revit and experiencing the following error when loading Rhino objects:
“LoadPlugIn cannot be called while a plug-in is being loaded”
We have identified the error to take place in a plug-in that we use to load additional plugins from a network location. The LoadPlugIn() method is called during the RhinoApp.Idle event that works fine when Rhino runs as a standalone application (similar to this), but Conveyor launches Rhino in an automated state and when the idle event is called Rhino appears to still be in a plug-in loading state. We also noticed that while Rhino is running as a background process, the RhinoApp.IsRunningHeadless property is set to false, which isn’t what we expected and so we can’t use this as a condition for calling the LoadPlugIn() method. We also tried using the property RhinoApp.IsRunningAutomated, but we’re still experiencing problems with some of our users.
Does the idle event function the same when Rhino is automated or not? Is there another way to call LoadPlugIn during startup? Is there a way to know if Rhino was launched by Conveyor?
Rhino Version 6 SR18 (6.18.19266.14201, 9/23/2019)
Conveyor Version 2019.10.4.0