How to uninstallPlugin?

How to uninstallPlugin?

makoo
Contributor Contributor
903 Views
4 Replies
Message 1 of 5

How to uninstallPlugin?

makoo
Contributor
Contributor

Hi,

 

How to uninstall or unload plugins from FormIt?

 

I have installed and uploaded some sample plugins. Because I modified the scripts and html files, I would like to update them.

When I run InstallPlugin again, I received warning message "Plugin already installed.".

warning.PNG

 

How to update the scripts and html file to already installed plugin?

Although I tried FormIt.UnInstallPlugin();, I received an error.

0 Likes
Accepted solutions (2)
904 Views
4 Replies
Replies (4)
Message 2 of 5

jeff_hauswirth
Autodesk
Autodesk
Accepted solution

I updated the example page to show how to uninstall plugins and also how to get a list of installed plugin URLs that you can use for the call to FormIt.UninstallPlugin.

 

To get the list of installed plugins-

FormIt.GetInstalledPlugins();

 

And to uninstall a plugin-

FormIt.UninstallPlugin([URL]);

Where [URL] is a URL from the GetInstalledPlugins call.

 

But I don't think that will do what you're wanting to do.  Sounds like you have the plugins local on your machine and running a web server to access them, is this correct?  In that case, I just restart FormIt and it will use the current files as they are saved on your machine.

Also verify that FormIt is using your version of the plugin by listing the installed plugin URLs-

FormIt.GetInstalledPlugins();

 

 

Message 3 of 5

makoo
Contributor
Contributor

Hi Jeff,

 

Thank you for replying.

I could uninstall existing plugins by FormIt.UninstallPlugin(URL);

 

However, I could not get any lists by FormIt.GetInstalledPlugins();.

When I run FormIt.GetInstalledPlugins();., nothing was happened.

Because I didn't receive any error message and debug window, I didn't typo.

Does the list output in Script Output panel?

2017-04-28_13-14-54.png

0 Likes
Message 4 of 5

jeff_hauswirth
Autodesk
Autodesk
Accepted solution

To get output to the Script Output window you need to call console.log(). For example-

 

var a = "Test";

console.log(a);

 

To clear the console-

 

console.clear();

 

So to see the results of calling GetInstalledPlugins-

 

var plugins = FormIt.GetInstalledPlugins();

console.log(plugins);

 

This returns an array that you can access-

 

var plugins = FormIt.GetInstalledPlugins();

// Get the first plugin URL

var plugin1 = plugins[0];

console.log(plugin1);

 

Message 5 of 5

makoo
Contributor
Contributor

Hi Jeff,

 

I could get the installed plugin list.

Thank you very much.

result.PNG

0 Likes