Summary: Demonstrates how to add your plug-in RhinoScript support to Monkey editor tree.
To create the description file, use MonkeySyntaxTreeEditor command.
Be sure to increase the version number when you make a change or Monkey won't realize it has to recreate the dll caches.
Here is how to create your plug-in syntax tree that you can use from within Monkey:
1.) Click the New icon: this creates new tree. the name of the tree should match the name of your plugin.
2.) Add your functions and define parameters and return values. You can also type a signature string in the property box directly, Monkey will attempt to parse the signature. Hence, if you type something like:
AddGeometry(intType, blnRedraw, dblSize) as RhObject
Will be properly parsed into:
AddGeometry(ByVal intType As Integer, ByVal blnRedraw As Boolean, ByVal dblSize As Double) As RhObject
You can make minor adjustments inside this signature string as well, such as replacing “ByVal” by “ByRef” or changing parameter types.
3.) When done, compile then save in Monkey resources folder.