Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4120

Adding a reference to plugin dll in C# script?

$
0
0

In a Python script, I can add a reference to my plugin dll, and use the plugin classes in the script, as in the following example script. Is there a way to get the same functionality in a C# script ?

#! python 3
import rhinoscriptsyntax as rs
import Rhino
import clr
clr.AddReference(“<plugin_path>\MyPlugin.rhp”)
import MyPlugin

d = MyPlugin.SomeClass()
d.SomeProperty= “a”

Any suggestions are welcome.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4120

Trending Articles