I am encountering an error while running my automation project and I am unable to find the error. I have followed the correct nomenclature in my program and the plugin document in the installation document for Navisworks.
Thank you
Hi @edufourGCYZK ,
There is no sufficient information provided so it is difficult for me to understand what is causing the issue.
I need a simple non-confidential sample code and a detailed explanation to understand the issue.
I have developed a plugin that conducts research on an item and then changes its color.
Here's the code:
I built this code into an assembly. Afterwards, I placed it in a document with the plugin's name in the installation document of Navisworks, within the document plugin.
After, from another program, which is a Windows Forms project utilizing the .NET 4.8 framework, I call the plugin using the following code.
And this code.
When running this application project, I observe successful invocation of the Navisworks file, as a small Navisworks box opens. However, after running for a while, I encounter the error code displayed in the picture included in my previous message.
Why do you have the plugin name duplicated?
Also, your plugin uses a string array as an parameter, but you are passing a single string as an argument.
In the documentation, they duplicated the name. I will correct this thank you
And I was sure that with a (params string[] parameters) arg, you can pass either an array of strings or just a single string if you want.
@edufourGCYZK wrote:And I was sure that with a (params string[] parameters) arg, you can pass either an array of strings or just a single string if you want.
Maybe, I haven't tested this.
Can't find what you're looking for? Ask the community or share your knowledge.