The plugin(shown below) is running when i click the button in Add-ins tab of Navisworks application. But when I try to execute the plugin through automation its not working.
//Add two new namespaces
[PluginAttribute("BasicPlugIn.ABasicPlugin", //Plugin name
"ADSK", //4 character Developer ID or GUID
ToolTip = "BasicPlugIn.ABasicPlugin tool tip", //The tooltip for the item in the ribbon
DisplayName = "Simulation Play Plugin")] //Display name for the Plugin in the Ribbon
public class ABasicPlugin : AddInPlugin //Derives from AddInPlugin
public override int Execute(params string parameters)
I am trying to execute the above plugin using
string aString = "Hello";
But this does not help execute the plugin and start the timeliner simulation.
Did you mean if LcTlSimulationHelper.Instance.Play(); cannot work when calling from an automation, or any code (like pop out a message box in the plugin)? If it is for LcTlSimulationHelper, sorry as I having said, this is NOT a public API we support now. We cannot guarantee all of its behaviors.
Yes. LcTlSimulationHelper.Instance.Play() is not working when that plugin is called through automation. But it is working perfectly as a plugin in navisworks application.
Since this is not a public (unsupported) API, things could go wrong.. Sorry for not much helping at this moment.