I’m trying to run the r.RhinoApp.RunScript method to insert a block from an event handler. I am attempting to use r.RhinoApp.InvokeOnUiThread() function based off of other discussions I have seen in this way:
r.RhinoApp.RunScript(’_-Insert File=Yes LinkMode=Link “’+file+’” Block 0 _Enter 0,0,0 1 0.0’,True)
#inside of the event handler:
However this makes the following error:
changedrange for loop TypeError(‘expected Delegate, got function’,)
Is there anyone who could explain how to go about this the right way? Or if there is an existing example to look at. Thanks!