RhinoCommon Import SVG Problem

Hi All,

Trying to import some svg files using the following code:

string script = "_-Import " + filename + " _Enter";
Rhino.RhinoApp.RunScript(script, true);

The filename looks like this in the debugger:

G:\\...\\assets\\ic_3d_rotation.svg

Running the plugin doesn’t error, the output console in Rhino shows:

Command: _-Import

And nothing gets imported.

Must be something I’m doing wrong due to being new to RhinoCommon API.

Any ideas what could solve this problem?

Many thanks

Adding this line right above the class declaration seem to have done the trick:

[Rhino.Commands.CommandStyle(Rhino.Commands.Style.ScriptRunner)]